Permutations and combinations has the reputation of being the hardest chapter in the algebra half of JEE Mathematics, and the reputation is partly deserved. The formulas $^nP_r$ and $^nC_r$ take ten minutes to learn. What takes weeks is deciding what is being counted: whether order matters, whether objects are identical, whether a restriction should be handled directly or by subtracting the bad cases, and whether a method has counted every case exactly once. A wrong answer in this chapter is almost always a wrong model rather than a wrong calculation.
This post is a full study guide to the chapter as it appears in the JEE Main syllabus. It covers the two basic principles of counting, permutations and combinations, arrangements with identical objects, restricted arrangements, circular arrangements, selections and distributions (including the stars-and-bars method and grouping), derangements, the rank of a word, and geometrical counting. Twelve worked examples in JEE style follow, each checked by brute-force enumeration on a computer before inclusion, then a list of common traps, a one-page recap and a practice plan. For the neighbouring chapters, see our overview of matrices, determinants, permutations and the binomial theorem.
What the syllabus asks
| Sub-topic | What you should be able to do |
|---|---|
| Fundamental principles | Use the addition and multiplication principles on multi-stage problems |
| Factorial, $^nP_r$, $^nC_r$ | Compute and manipulate; $^nC_r=\,^nC_{n-r}$, Pascal's identity |
| Arrangements | Distinct objects, identical objects, with repetition, with restrictions |
| Circular arrangements | Fix a reference, handle necklaces and symmetry |
| Selections | At least, at most, exactly; selection from identical objects |
| Distribution and grouping | Labelled and unlabelled groups, stars and bars |
| Derangements and inclusion-exclusion | Standard formula for $D_n$ |
| Word rank and number problems | Dictionary order, digit-sum and divisibility counting |
| Geometrical counting | Triangles, diagonals, rectangles from points and lines |
The two principles
Addition principle. If a task can be done in one of two mutually exclusive ways, with $m$ choices in the first and $n$ in the second, the total is $m+n$. Multiplication principle. If a task has two stages, with $m$ ways for the first and then $n$ ways for the second (whatever was chosen first), the total is $mn$.
Everything else in the chapter is built from these. Before reaching for a formula, ask whether the problem is a sequence of stages (multiply), a set of separate cases (add), or both. A large part of the difficulty is that students try to find a single formula for the whole problem rather than splitting it. The two tests for a correct split are that the cases do not overlap (so you do not count something twice) and that they cover everything (so nothing is missed).
For a number problem, begin with the position that has the most restrictions. To count even 4-digit numbers from the digits $1$ to $5$ with no repeats, fill the units place first (two choices, $2$ or $4$), then the other three places in $4\cdot3\cdot2$ ways. Filling the thousands place first would have forced a case split on whether the digit used was even.
Also read: Electronic Configuration Exceptions for JEE: Rules and Counting
Permutations and combinations
A permutation is an arrangement in which order matters; a combination is a selection in which it does not. For $0\le r\le n$,
$$^nP_r=\frac{n!}{(n-r)!},\qquad {}^nC_r=\frac{n!}{r!\,(n-r)!},\qquad {}^nP_r=r!\;{}^nC_r$$
The identities that make calculation and manipulation easy:
$$^nC_r=\,^nC_{n-r},\qquad ^nC_r+\,^nC_{r-1}=\,^{n+1}C_r,\qquad r\;{}^nC_r=n\;{}^{n-1}C_{r-1}$$
and the equation $^nC_a=\,^nC_b$ implies $a=b$ or $a+b=n$. The number of ways of arranging $n$ distinct objects in a row is $n!$, and the number of ways of selecting a subset of any size from $n$ objects is $2^n$ (or $2^n-1$ if the empty set is excluded).
The decision rule is a single question: if two outcomes that contain the same objects in different positions count as different, use a permutation. Choosing a committee is a combination; choosing a president, a secretary and a treasurer from a committee is a permutation.
Arrangements with identical objects and with repetition
If among $n$ objects there are $p$ of one kind, $q$ of another, $r$ of a third and the rest distinct, the number of arrangements is
$$\frac{n!}{p!\,q!\,r!}$$
For the letters of MISSISSIPPI (one M, four I, four S, two P), the total is $\dfrac{11!}{1!\,4!\,4!\,2!}=34650$.
For arrangements with repetition allowed, the multiplication principle applies directly: $r$ positions each filled from $n$ objects in $n^r$ ways. For example the number of 3-digit strings over $\{1,\dots,5\}$ is $5^3$.
The "gap method" for separation
To keep certain objects apart, arrange the other objects first and insert the restricted objects into the gaps. In an arrangement of $m$ objects there are $m+1$ gaps (including the two ends). To place $k$ identical objects so that no two are adjacent, choose $k$ of those $m+1$ gaps: $^{m+1}C_k$ ways. If the restricted objects are distinct, multiply by $k!$.
In MISSISSIPPI, with no two S adjacent: arrange the seven non-S letters (M, four I, two P) in $\dfrac{7!}{4!\,2!}=105$ ways, leaving $8$ gaps, and choose $4$ of them for the S letters: $^8C_4=70$. The total is $105\times70=7350$.
The "glue" method for togetherness
To keep objects together, treat them as a single block, arrange the blocks, then arrange the objects inside the block. For $k$ distinct objects that must stay together among $n$ in total: $(n-k+1)!\cdot k!$.
When two conditions interact, use complement counting: total minus the arrangements that violate the condition. "At least one" is nearly always easier as total minus none.
Restricted selections and "at least" problems
Choosing $r$ objects from $n$ distinct objects is $^nC_r$. When the selection has constraints, split by composition.
- Committee of $k$ with at least $j$ members from a group: sum over the possible numbers from that group, or subtract the complement.
- Selection from groups: choose from each group separately and multiply.
- Selection of any number of objects from identical objects: from $p$ identical objects of one kind you can take $0,1,\dots,p$, which is $p+1$ choices. Multiply across kinds. For MISSISSIPPI, the number of non-empty selections of any size is $(1+1)(4+1)(4+1)(2+1)-1=149$.
- Selecting $r$ objects from a mixture of identical and distinct objects: use the generating function, the coefficient of $x^r$ in $\prod(1+x+\dots+x^{p_i})$. For selections of $4$ letters from MISSISSIPPI the coefficient of $x^4$ is $21$.
A frequent shortcut: choosing $k$ objects to include is the same as choosing $n-k$ to leave out, so $^nC_k=\,^nC_{n-k}$ can turn a large selection into a small one.
Circular arrangements
In a circular arrangement only relative positions matter, so rotations of the same arrangement are the same. $n$ distinct objects round a table can be arranged in $(n-1)!$ ways. Fix one object and arrange the other $n-1$ in a line.
- If clockwise and anticlockwise arrangements are regarded as the same, as for beads on a necklace or a garland, the count is $\dfrac{(n-1)!}2$ (for $n\ge3$).
- $r$ of $n$ distinct objects round a table: $\dfrac{^nP_r}r$.
- Two particular people not adjacent: total minus adjacent. Adjacent means treating the two as a block ($(n-2)!$ ways for the rest and the block, times $2$ for the order inside the block), so for $n$ people the count is $(n-1)!-2\,(n-2)!$.
- Alternate seating of two groups: fix one person of the larger group (or of either group when equal), then arrange the others.
Round a table of $6$ people, two named people not adjacent: $5!-2\cdot4!=120-48=72$.
Distributions and groupings
The two questions to ask are whether the objects are identical or distinct, and whether the groups are labelled (distinguishable recipients) or not.
Identical objects to distinct recipients (stars and bars). The number of non-negative integer solutions of $x_1+x_2+\cdots+x_k=n$ is $^{n+k-1}C_{k-1}$. If every $x_i\ge1$, the count is $^{n-1}C_{k-1}$. If some variables have larger lower bounds, shift them: for $x\ge1$, $y\ge2$, $z\ge3$ with $x+y+z=15$, substitute $x'=x-1$, $y'=y-2$, $z'=z-3$ to get $x'+y'+z'=9$ in non-negative integers, which has $^{11}C_2=55$ solutions. For upper bounds, use inclusion-exclusion or the complement.
Distinct objects to distinct recipients. Each object has a free choice: $k^n$ ways for $n$ objects to $k$ recipients, with no restriction. If every recipient must get at least one, the count is the number of onto functions (inclusion-exclusion). A shortcut for small cases is to count the possible partitions by sizes and multiply by the number of ways to assign the groups to recipients.
Dividing distinct objects into groups of given sizes. Divide into groups of sizes $p,q,r$ (all different): $\dfrac{n!}{p!\,q!\,r!}$. If some groups have equal size and the groups are unlabelled, divide further by the factorial of the number of equal-size groups. Splitting $10$ people into groups of $4,3,3$ gives $\dfrac{10!}{4!\,3!\,3!\,2!}=2100$. If the groups are labelled, drop the final $2!$ and the count is $4200$. Splitting $2n$ people into $n$ pairs gives $\dfrac{(2n)!}{2^n\,n!}$.
The words "unlabelled" and "labelled" are rarely written in the question. You have to judge from context: groups sent to different places or given different names are labelled; "divided into teams" is unlabelled unless the teams are named.
Derangements and inclusion-exclusion
A derangement is an arrangement in which no object occupies its original position. The number of derangements of $n$ objects is
$$D_n=n!\left[1-\frac1{1!}+\frac1{2!}-\frac1{3!}+\cdots+\frac{(-1)^n}{n!}\right]$$
with $D_1=0,\ D_2=1,\ D_3=2,\ D_4=9,\ D_5=44$. They satisfy $D_n=(n-1)(D_{n-1}+D_{n-2})$. The number of arrangements in which exactly $r$ objects are in their original places is $^nC_r\,D_{n-r}$. Questions about letters and envelopes, hats and owners, or students and seats with "nobody in the original place" are all this formula.
The general tool behind it is inclusion-exclusion for the number of elements in a union of events:
$$|A_1\cup\cdots\cup A_k|=\sum|A_i|-\sum|A_i\cap A_j|+\sum|A_i\cap A_j\cap A_l|-\cdots$$
Use it for "none of these conditions holds" questions, such as the number of integers up to $100$ divisible by none of $2,3,5$.
Rank of a word and number problems
Rank in dictionary order. List the letters alphabetically. For each position in the given word, count the words that begin with a smaller available letter in that position, each contributing the number of arrangements of the remaining letters, then add $1$ at the end. For SMART, the letters in order are A, M, R, S, T. The words that start with A, M or R number $3\times4!=72$. For words starting with S, the remaining letters are A, M, R, T and the second letter of SMART is M: the words starting with SA number $3!=6$, and the next word is SMART itself (since after SM the sorted letters A, R, T give SMART first). So the rank is $72+6+1=79$. If letters repeat, divide by the factorials of repeated letters at each step.
Number problems. Counting integers with a given property uses the multiplication principle with a placement order. For divisibility, use the end digits: by $2$ or $5$ the last digit; by $4$ the last two digits; by $3$ or $9$ the digit sum. For "sum of all numbers formed from the digits $d_1,\dots,d_n$ (distinct, each used once)", each digit occupies each place $(n-1)!$ times, so the sum is $(n-1)!\,(\sum d_i)\cdot\underbrace{11\cdots1}_{n}$. For the digits $1,2,3,4$: $3!\cdot10\cdot1111=66660$.
Geometrical counting
- Triangles from $n$ points, no three collinear: $^nC_3$. If $m$ of them are collinear, subtract $^mC_3$.
- Lines from $n$ points, no three collinear: $^nC_2$. If $m$ are collinear, subtract $^mC_2$ and add $1$.
- Diagonals of an $n$-gon: $^nC_2-n=\dfrac{n(n-3)}2$.
- Rectangles in a grid of $m\times n$ squares: $^{m+1}C_2\cdot\,^{n+1}C_2$, since a rectangle is fixed by choosing two of the $m+1$ horizontal lines and two of the $n+1$ vertical lines. A chessboard has $^9C_2\cdot\,^9C_2=1296$ rectangles, of which $204$ are squares.
- Triangles formed by joining vertices of an $n$-gon, with none of the sides a side of the polygon: a standard formula is $\dfrac n6(n-4)(n-5)$; derive it when needed rather than memorising.
Worked examples
Each example below was checked by computer, either by enumerating all cases with a short program or by evaluating the formula against an independent count, before being included. They run from easy to hard.
Example 1 (single-correct). The number of even 4-digit numbers that can be formed from the digits $1,2,3,4,5$ with no digit repeated is
(A) $24$ (B) $36$ (C) $48$ (D) $60$
Solution. The units digit is $2$ or $4$: two choices. The remaining three places are filled from the other four digits in $4\cdot3\cdot2=24$ ways. Total $2\times24=48$. Listing all $120$ four-digit arrangements and counting those with an even last digit gave $48$. Answer: (C).
Example 2 (numerical-value). The number of arrangements of the letters of MISSISSIPPI in which no two S are adjacent is ______.
Solution. Arrange M, IIII, PP in $\dfrac{7!}{4!\,2!}=105$ ways. These leave $8$ gaps; choose $4$ for the S letters in $^8C_4=70$ ways. Total $105\times70=7350$. Enumerating all $34650$ distinct arrangements and discarding those that contain "SS" gave $7350$. Answer: 7350.
Example 3 (single-correct). A committee of $4$ is to be formed from $5$ men and $4$ women with at least $2$ women. The number of ways is
(A) $60$ (B) $81$ (C) $101$ (D) $126$
Solution. Cases by women: $2$ women and $2$ men: $^4C_2\,^5C_2=60$; $3$ women and $1$ man: $^4C_3\,^5C_1=20$; $4$ women: $1$. Total $81$. Cross-check by complement: $^9C_4=126$ minus those with $0$ or $1$ women ($^5C_4=5$ and $^4C_1\,^5C_3=40$) gives $126-45=81$. A computer enumeration agreed. Answer: (B).
Example 4 (numerical-value). Six people sit round a circular table. The number of arrangements in which two particular people are not adjacent is ______.
Solution. Total circular arrangements: $5!=120$. Arrangements with the two adjacent: treat them as a block, giving $4!$ arrangements of block and four others around the table, times $2$ for the order in the block: $48$. So the answer is $120-48=72$. Enumeration with one person fixed and a check on the separation of the other two gave $72$. Answer: 72.
Example 5 (numerical-value). The number of positive integer solutions of $x+y+z=15$ with $x\ge1$, $y\ge2$, $z\ge3$ is ______.
Solution. Put $x'=x-1,\ y'=y-2,\ z'=z-3$, all $\ge0$, so $x'+y'+z'=9$. The number of non-negative solutions is $^{9+3-1}C_{3-1}=\,^{11}C_2=55$. A triple loop over the ranges also gave $55$. Answer: 55.
Example 6 (single-correct). Five letters are put at random into five addressed envelopes. The number of ways in which no letter is in its correct envelope is
(A) $24$ (B) $44$ (C) $53$ (D) $60$
Solution. This is $D_5$. Using $D_n=(n-1)(D_{n-1}+D_{n-2})$ with $D_3=2$ and $D_4=9$: $D_5=4(9+2)=44$. Equivalently, $5!\left(1-1+\tfrac12-\tfrac16+\tfrac1{24}-\tfrac1{120}\right)=44$. Enumeration of all $120$ permutations with no fixed point gave $44$. Answer: (B).
Example 7 (numerical-value). If all the letters of SMART are arranged in all possible ways and listed in dictionary order, the position of SMART in the list is ______.
Solution. Alphabetical order: A, M, R, S, T. Words beginning with A, M or R: $3\cdot4!=72$. Words beginning with S: remaining letters A, M, R, T. Those beginning SA: $3!=6$. Next the words beginning SM: the remaining letters are A, R, T and SMART is the first of them in order. Rank $=72+6+1=79$. Sorting all $120$ arrangements and locating SMART gave position $79$. Answer: 79.
Example 8 (single-correct). Twelve points lie in a plane, of which five are collinear and no other three are collinear. The number of triangles with vertices at these points is
(A) $200$ (B) $210$ (C) $220$ (D) $230$
Solution. Triples of points: $^{12}C_3=220$. Triples that are collinear, all from the five: $^5C_3=10$. Triangles: $220-10=210$. Answer: (B).
Example 9 (numerical-value). The number of 5-digit numbers divisible by $4$ that can be formed using the digits $1,2,3,4,5$ with repetition allowed is ______.
Solution. Divisibility by $4$ depends on the last two digits. The two-digit endings from $\{1,\dots,5\}$ that are multiples of $4$ are $12,24,32,44,52$: five of them. The first three digits are free: $5^3=125$. Total $5\times125=625$. Testing all $3125$ strings directly gave $625$. Answer: 625.
Example 10 (numerical-value). The number of ways in which $10$ people can be divided into three groups of sizes $4,3,3$ (the groups are not labelled) is ______.
Solution. Labelled groups: $\dfrac{10!}{4!\,3!\,3!}=4200$. The two groups of size $3$ are interchangeable, so divide by $2!$: $2100$. Answer: 2100.
Example 11 (numerical-value). The number of rectangles (including squares) on an $8\times8$ chessboard is ______.
Solution. A rectangle is determined by choosing two of the $9$ horizontal lines and two of the $9$ vertical lines: $^9C_2\times\,^9C_2=36\times36=1296$. Answer: 1296.
Example 12 (numerical-value). The sum of all $4$-digit numbers that can be formed using each of the digits $1,2,3,4$ exactly once is ______.
Solution. Each digit appears in each place in $3!=6$ of the $24$ numbers. The sum contributed by a place is $6\times(1+2+3+4)=60$ times its place value, and the total is $60\times1111=66660$. Adding all $24$ numbers directly gave $66660$. Answer: 66660.
Common traps
- Using a permutation when the objects are chosen as a set. Choosing a team of $3$ is $^nC_3$, not $^nP_3$. If the question says "arrange" or assigns roles, order matters.
- Counting a case twice. In "at least one woman" problems, choosing one woman first and then the rest from everyone counts a committee with two women twice. Use case counting by the exact number or use the complement.
- Forgetting that rotations are the same in circular arrangements. Treating a round table as a line gives $n!$, and the answer is off by a factor of $n$.
- Forgetting the order inside a block. When two people must sit together, the block can be arranged in $2$ ways. Missing this halves the answer.
- Applying $\dfrac{(n-1)!}2$ to every circular problem. It applies when reflections are the same (necklaces, garlands). People round a table, with a clockwise order different from an anticlockwise order, use $(n-1)!$.
- Dividing by the factorial of repeated letters at the wrong stage. In rank problems, the number of arrangements of the remaining letters must account for repeats among the remaining letters only.
- Treating "unlabelled groups" as labelled. Groups of equal size that are interchangeable require division by the factorial of their number.
- Forgetting that stars-and-bars needs non-negative variables. If each variable must be at least $1$, shift first; do not apply the non-negative formula to positive-integer conditions.
- Counting the gaps wrongly. In the gap method, $m$ objects leave $m+1$ gaps, including both ends. Using $m-1$ gaps loses the end positions.
- Counting the leading zero. In number-formation problems, remember that a $4$-digit number cannot start with $0$. Count the first place first, or subtract the numbers that start with $0$.
- Using $D_n$ as $n!/e$ without rounding. The formula $\dfrac{n!}e$, rounded to the nearest integer, is valid for $n\ge1$; leaving it as a decimal gives a non-integer count.
- Miscounting the all-selection formula. From identical objects the number of selections of any size is $\prod(p_i+1)$, which includes the empty selection; subtract $1$ when "at least one" is required.
A one-page recap
- Multiplication principle for stages, addition principle for disjoint cases; start with the most restricted position.
- $^nP_r=\dfrac{n!}{(n-r)!}$; $^nC_r=\dfrac{n!}{r!(n-r)!}$; $^nC_r=\,^nC_{n-r}$; $^nC_r+\,^nC_{r-1}=\,^{n+1}C_r$.
- Arrangements with repeats: $\dfrac{n!}{p!\,q!\,r!}$; with repetition allowed: $n^r$.
- Gap method: $m$ objects have $m+1$ gaps; glue method for togetherness; complement for "at least".
- Circular: $(n-1)!$; necklace: $\dfrac{(n-1)!}2$; two not adjacent: $(n-1)!-2(n-2)!$.
- Stars and bars: $^{n+k-1}C_{k-1}$ for non-negative solutions; $^{n-1}C_{k-1}$ for positive solutions.
- Division into groups: $\dfrac{n!}{p!\,q!\,r!}$, divide by the factorial of equal-size groups if unlabelled.
- Derangements: $D_n=n!\sum\dfrac{(-1)^k}{k!}$; $D_3=2$, $D_4=9$, $D_5=44$.
- Rectangles on an $m\times n$ grid: $^{m+1}C_2\,^{n+1}C_2$; diagonals of an $n$-gon: $\dfrac{n(n-3)}2$.
- Sum of all numbers from $n$ distinct digits: $(n-1)!\,(\sum d)\cdot11\cdots1$.
Also read: Spring-Mass SHM and Spring Combinations for JEE
How to practise this chapter
Start with the first Permutations and Combinations chapter test. The chapter has 4 tests, and the later ones lean on restricted arrangements and mixed counting. After every test, redo each wrong question by a second method (complement, or direct counting on a smaller case) to see which model went wrong.
The book chapter gives the theory and extra worked problems: English, Hindi and Telugu. The full series is on the JEE shelf.
A 7-day schedule we suggest:
| Day | Work |
|---|---|
| 1 | Principles, $^nP_r$ and $^nC_r$, number-formation problems; examples 1 and 3 |
| 2 | Arrangements with repeats, gap and glue methods; example 2 |
| 3 | Circular arrangements and selections; example 4 |
| 4 | Distributions, stars and bars, grouping; examples 5 and 10 |
| 5 | Derangements, word rank, digit sums; examples 6, 7 and 12 |
| 6 | Geometrical counting and mixed problems; examples 8, 9 and 11 |
| 7 | Chapter tests 1 and 2 under a 36-minute limit; error log |
A habit that helps here more than anywhere else: when you have an answer, test your model on a smaller version of the problem that you can list by hand, with $3$ or $4$ objects, and see whether the formula gives the right count. Afterwards move to mixed practice with the JEE Main Mathematics practice tests and the full mocks; in our mock design the chapter gives about one question per paper, and its ideas return in probability and the binomial theorem. The 10-question JEE Main mini mock is a free first check with no sign-up. Full mocks, practice tests and chapter tests are part of the Pro Pass. For related reading see the Mathematics preparation strategy, the binomial theorem and general term, conditional probability and Bayes, sequences and series and pattern recognition in JEE Maths.
Frequently asked questions
How do I decide between permutation and combination?
Ask whether swapping two chosen objects gives a different outcome. If yes, order matters and you are arranging (permutation). If no, you are selecting (combination). Roles, positions and ranks imply order; teams, committees and subsets do not.
Why is my answer double the correct one in a circular arrangement?
Usually because reflections were treated as the same (the $\dfrac{(n-1)!}2$ rule) when the problem needed $(n-1)!$, or because a block was given an extra factor $2$. Check whether clockwise and anticlockwise are the same and whether the block's internal order was counted once.
When should I use the complement method?
Whenever the condition is "at least", "not all", "not adjacent" or "none". The complement is usually a single clean count, while the direct case-by-case count has many terms.
What is the difference between labelled and unlabelled groups?
Labelled groups are distinguishable, for example groups sent to different cities. Unlabelled groups are not, so swapping two groups of the same size gives the same division. For unlabelled groups, divide by the factorial of the number of equal-size groups.
How many derangements should I remember?
$D_1=0$, $D_2=1$, $D_3=2$, $D_4=9$, $D_5=44$. For larger $n$ use the recurrence $D_n=(n-1)(D_{n-1}+D_{n-2})$.
Is this chapter related to probability?
Yes. Probability of equally likely outcomes is a ratio of two counts, and both counts come from this chapter. A student who counts reliably finds probability much easier, which is why the two are usually studied close together.
How do I check my counting model quickly?
Reduce the numbers. If the question has $8$ people, try $3$ or $4$ and list all arrangements by hand. If the formula does not match the list, the model is wrong. This habit catches double counting and missed cases better than rechecking arithmetic.

Comments (0)
No comments yet. Be the first to share your thoughts.