Fundamentholfundamenthol

Permutation and Combination Formulas for JEE Main and Advanced

MathsClass 11, Permutations and CombinationsFor JEE Main and Advanced

Permutation and combination formulas for JEE Main and Advanced on one page: the counting principles, and with their properties, arrangements with repeats, blocks, gaps and circles, selections with points and lines, integer solutions, distributions, derangements and counting functions, each with the condition under which it holds. The table shows which formulas decided the most questions in recent JEE papers, and section 6 solves ten of them step by step. Permutations and combinations is a Class 11 chapter, and its counting comes back in probability and the binomial theorem.

Which formulas JEE uses most

We read all 55 questions on permutation and combination in our 48 past papers (JEE Main 2025-2026, JEE Advanced 2022-2026) and noted the formulas each solution needs; one question can need several. The formulas used most:

FormulaQuestions
with and Pascal's rule 2545%
Arrangements with repeated objects: 1120%
Total minus unwanted, inclusion-exclusion, the block method for "together"1120%
Fundamental principle of counting: multiply for stages, add for cases713%
59%
Points and lines: triangles when are collinear, diagonals 59%
Functions from an -set to an -set: in all, one-one, strictly increasing59%
Rank of a word in dictionary order35%
Show the other 7
FormulaQuestions
with every : solutions35%
Power of a prime in : 24%
Repetition allowed: 24%
Gap method for "no two together"; no two consecutive from : 24%
Number of subsets of an -set: 12%
Distinct objects into distinct boxes with none empty (inclusion-exclusion)12%
Dividing into groups of sizes : 12%

1. Counting principles, and

Fundamental principle of counting

If one step can be done in ways and the next step in ways, both steps together can be done in ways. If the job is done one way or another way (separate cases that cannot happen together), add the counts.

ExpressionEqualsNote
Arrangements of out of different objects: the order counts
Selections: the order does not count
So gives or
Pascal's rule
Takes a factor out of a sum
So is largest in the middle: at for even , at for odd
Hockey-stick sum
The number of subsets of an -set

2. Arrangements

ArrangementNumberNote
In a row different objects
Repetition allowed places, each filled from the same different objects
Repeated objects objects in a row: alike of one kind, alike of another, alike of a third
Fixed order of the objects must come in a given order (the vowels in alphabetical order, say)
Together: the block method given objects side by side: glue them into one block, arrange the units, then the inside the block
No two together: the gap methodArrange the other first, then put the objects in different gaps out of the (ends included). Needs .
Around a circleTurning the whole circle gives the same arrangement
Necklace or garlandTurning it over also gives the same one ()
of around a circleRotations count as the same; as a necklace it is ()
Rank of a word in dictionary order

Write the letters in alphabetical order. Go along the word from the left: at each place, count the words that keep the letters already fixed and put a smaller letter here (arrange the letters still left, dividing by for a letter left times). Add the counts.

3. Selections, points and lines

SelectionNumberNote
SubsetsEach of different objects is in or out; at least one object:
From alike objects alike, alike and alike objects of three kinds: take any number of each, at least one object in all
Divisors of in primes; and are counted. Their sum:
No two consecutive numbers from with no two consecutive
Lines through points of the points on one line and no other three on a line
Triangles from pointsThe same set-up; with no three on a line it is
Diagonals of an -gon
Triangles on the corners of an -gonWith no side along a side of the polygon: ()
Rectangles in a grid horizontal and vertical lines. An board has squares.

4. Distributions, integer solutions and functions

DistributionNumberNote
Identical objects, Solutions of , which is identical objects into different boxes with empty boxes allowed
Identical objects, No box empty
Upper limit Inclusion-exclusion: take away the solutions with some ; stop when
Different objects, any box different objects into different boxes
Different objects, no box emptyFor boxes:
Different objects, identical boxes, none emptyThe count above divided by : different books into identical bags, none empty, in ways. Identical objects into identical boxes: list the ways to split by hand.
Groups of sizes , , , sizes all different, or the groups named (teams X, Y and Z). If unnamed groups have the same size, divide by : sizes give .
Equal groups objects into unnamed groups of ; given out to people it is
DerangementsNo object in its own place: , , ,

For functions from a set with elements to a set with elements:

FunctionsNumberNote
All functions
One-oneNeeds
OntoNeeds
Strictly increasingSets of numbers: choose the values and the order is forced
Non-decreasingValues may repeat: a selection with repetition
Power of a prime in

is the greatest integer function; stop once . The number of zeros at the end of is the power of in it.

5. Exam traps

Watch out
  • Order matters (arrangements, numbers, queues): . Order does not matter (committees, teams, selections): .
  • Identical or different objects, identical or different boxes: four different counts. Decide this first.
  • "Not all together" is total minus all together; "no two together" is the gap method. They are different questions.
  • A number cannot start with : take away the arrangements that do.
  • Around a circle with unmarked seats it is , not (numbered seats: ). Divide by only when turning over gives the same arrangement (necklace, garland).
  • Equal groups that are not named: divide by . Named groups or groups given to people: do not.
  • In dictionary rank, sort the letters first and divide by for repeated letters still left.
  • With collinear points: triangles are lost, and lines become line.

6. Past-paper questions, solved

Ten questions from our past papers, chosen to cover the formulas used most. The question and the answer key are as set in the paper; the working is ours.

PYQ 1: Total minus unwanted

The number of ways, of forming a queue of boys and girls such that all the girls are not together, is:

  1. (A)
  2. (B)
  3. (C)
  4. (D)
Solution:
  1. All queues of the people: .
  2. Queues with all girls together: glue them into one block, arrange the units in ways and the girls inside the block in ways: .
  3. Girls not all together: . (In the question, "all the girls are not together" means not all three together.)

Answer key (D)

PYQ 2: Block method and gap method

The number of ways, boys and girls can sit in a row so that either all the boys sit together or no two boys sit together, is ________.

Solution:
  1. All boys together: the block of boys and the girls make units, arranged in ways; the boys inside the block in ways. That gives .
  2. No two boys together: seat the girls in ways. They leave gaps (the two ends included), one boy in each: ways. That gives .
  3. The two cases cannot happen together, so add them: .

Answer key 17280

PYQ 3: Dictionary rank

The letters of the word "UDAYPUR" are written in all possible ways with or without meaning and these words are arranged as in a dictionary. The rank of the word "UDAYPUR" is :

  1. (A) 1580
  2. (B) 1578
  3. (C) 1579
  4. (D) 1581
Solution:
  1. Letters in alphabetical order: A, D, P, R, U, U, Y (U twice).
  2. Words starting with A, D, P or R: each leaves letters with U twice, so words each, in all.
  3. Words starting with U: the letters left are A, D, P, R, U, Y, all different. A second letter smaller than D is only A: words. Total so far .
  4. After UD the next letter A is the smallest left: no words. After UDA the letters left are P, R, U, Y, and P, R and U are smaller than Y: words. Total .
  5. After UDAY the next letter P is the smallest left. After UDAYP the letters left are R and U, and R is smaller than U: word (UDAYPRU). Total .
  6. So UDAYPUR is word number .

Answer key (A) 1580

PYQ 4: Arrangements with repeated digits

The number of seven-digit numbers, that can be formed by using the digits and such that each digit is used at least once, is :

  1. (A)
  2. (B)
  3. (C)
  4. (D)
Solution:
  1. Seven places, five digits, each digit at least once: the digit counts are (one digit three times) or (two digits twice).
  2. One digit three times: choose it in ways and arrange the seven digits in ways: .
  3. Two digits twice: choose them in ways and arrange in ways: .
  4. Total: . The onto formula agrees: .

Answer key (C)

PYQ 5: Triangles from points with some collinear

There are 12 points in a plane, no three of which are in the same straight line, except 5 points which are collinear. Then the total number of triangles that can be formed with the vertices at any three of these 12 points is

  1. (A)
  2. (B)
  3. (C)
  4. (D)
Solution:
  1. Any of the points: choices.
  2. Three of the collinear points give no triangle: choices.
  3. Triangles: .

Answer key (D)

PYQ 6: Integer solutions (stars and bars)

The number of ways, in which 16 oranges can be distributed to four children such that each child gets at least one orange, is

  1. (A) 429
  2. (B) 384
  3. (C) 403
  4. (D) 455
Solution:
  1. Take the oranges as identical (the usual reading; the key agrees) and the children as different, so count the solutions of with every .

Answer key (D) 455

PYQ 7: Integer solutions with an upper limit

The number of ways to distribute identical red pens and identical blue pens among four persons such that each person gets pens, is _____________.

Solution:
  1. Each person gets pens, so once the red pens are given out the blue ones are fixed: person gets red and blue pens.
  2. So count with . The blue pens then add up to by themselves.
  3. Without the upper limit: solutions. With , put : then has solutions. The same holds for each of the people, and two people cannot both have or more.
  4. Number of ways: .

Answer key 206

PYQ 8: Different objects, no box empty

A person has three different bags and four different books. The number of ways, in which he can put these books in the bags so that no bag is empty, is

  1. (A)
  2. (B)
  3. (C)
  4. (D)
Solution:
  1. Each book goes into one of the bags: ways.
  2. Take away the ways with a given bag empty, , and add back the ways with two given bags empty (taken away twice), .
  3. No bag empty: . Directly: two books share a bag ( ways), then the three groups go to the three bags in ways: .

Answer key (B)

PYQ 9: Groups, with inclusion-exclusion

A group of 9 students, , is to be divided to form three teams , and of sizes 2, 3, and 4, respectively. Suppose that cannot be selected for the team , and cannot be selected for the team . Then the number of ways to form such teams, is ______.

Solution:
  1. Without restrictions: ways (the teams are named, so nothing more to divide).
  2. in X: one more member for X from the other , then of the remaining for Y: .
  3. in Y: two more members for Y from , then of the remaining for X: .
  4. Both: one more for X from , then two more for Y from the remaining : .
  5. Allowed: .

Answer key 665

PYQ 10: Power of a prime in

The largest , for which divides , is :

  1. (A) 16
  2. (B) 18
  3. (C) 15
  4. (D) 19
Solution:
  1. and the sum stops there, since .
  2. So the largest is .

Answer key (A) 16

Every formula on this page is checked with a computer algebra system, and every worked answer is recomputed and matched with the answer key. Past papers: JEE Main 2025-2026, JEE Advanced 2022-2026; the questions were read by hand (lists checked 2026-10-15).

Learn each topic in depth

Notes, derivations, solved examples and the past-paper questions on each topic.

More maths formula pages

Practise questions like these

Concept-wise questions with instant solutions, and full mock tests, on Fundamenthol.