Permutations and Combinations: Circular, Identical, Distributions
Permutations count arrangements, where order matters; combinations count selections, where it does not. Entry tests go beyond simple nPr and nCr: they ask about seats around a table, letters that repeat, people who must or must not sit together, sweets shared among children and letters put in the wrong envelopes. This lesson builds the standard method for each type, and every answer below has been checked by listing all the cases by computer.
Asked in: ECAT, NUST NET, JEE Main, FSc and Class 11-12 boards
Core formulas and identities
If one job can be done in m ways and a second in n ways, both can be done in m × n ways (multiplication principle), and one or the other in m + n ways (addition principle).
nPr counts ordered arrangements of r objects chosen from n distinct objects; nCr counts unordered selections. Two identities save time: choosing r is the same as rejecting n − r, and Pascal's rule builds each row from the previous one.
- nPr = n!/(n − r)!
- nCr = n!/[r!(n − r)!] = nPr/r!
- nCr = nC(n − r); if nCa = nCb with a ≠ b then a + b = n
- nCr + nC(r − 1) = (n + 1)Cr
Restrictions: together, apart, fixed
Objects that must be together: tie them into one block, arrange the blocks, then multiply by the arrangements inside the block.
Objects that must not be together (no two adjacent): first arrange the other objects, then place the restricted ones in the gaps between and at the ends. With m other objects there are m + 1 gaps. 'Not all together' is total minus 'all together'; that is different from 'no two together'.
- k particular objects together among n: (n − k + 1)! × k!
- No two of k objects adjacent among m others: m! × (m + 1)Pk
Identical objects and divisors
If n objects include p alike of one kind, q alike of another and so on, the number of arrangements is n! divided by p! q! …, because swapping identical objects gives nothing new.
To select from identical objects, only the number taken of each kind matters: from p identical items there are p + 1 choices (0 to p). The same idea counts divisors: if N = aᵖ bᵠ cʳ with a, b, c prime, N has (p + 1)(q + 1)(r + 1) divisors.
- Arrangements = n!/(p! q! r! …)
- Selections of at least one from p, q, r identical items of three kinds = (p + 1)(q + 1)(r + 1) − 1
- Number of divisors of aᵖbᵠcʳ = (p + 1)(q + 1)(r + 1)
Circular arrangements
Around a round table only relative positions matter, so rotations of one seating are the same seating. Fix one person and arrange the rest: (n − 1)! ways.
For a necklace or garland, turning it over gives the same pattern too, so clockwise and anticlockwise orders are identical: divide by 2 (for n ≥ 3). If the seats are numbered or one seat is special, the arrangement is no longer purely circular and n! may apply.
- n people round a table: (n − 1)!
- Necklace or garland of n different beads: (n − 1)!/2
Distributions
Identical objects into distinct boxes (stars and bars): n identical items into r boxes is the number of non-negative integer solutions of x₁ + x₂ + … + xᵣ = n. If every box must get at least one, give one to each first.
Distinct objects into distinct boxes: each object independently chooses a box, so rⁿ ways when boxes may be empty. If no box may be empty, subtract the bad cases by inclusion-exclusion. Splitting distinct objects into equal groups that are not labelled needs division by the number of ways to order the groups.
- Non-negative solutions of x₁ + … + xᵣ = n: (n + r − 1)C(r − 1)
- Positive solutions: (n − 1)C(r − 1)
- n distinct into r distinct boxes, none empty: rⁿ − rC1(r − 1)ⁿ + rC2(r − 2)ⁿ − …
- 3n distinct items into 3 unlabelled groups of n: (3n)!/[(n!)³ × 3!]
Geometry counts
A line needs 2 points and a triangle needs 3 non-collinear points. When some points are collinear, subtract what they wrongly produce: m collinear points give only 1 line instead of mC2, and no triangles instead of mC3.
A polygon with n vertices has nC2 segments joining vertices, of which n are sides, so nC2 − n diagonals. A grid of m parallel lines crossed by n parallel lines makes mC2 × nC2 parallelograms.
- Diagonals = nC2 − n = n(n − 3)/2
- Lines from n points, m collinear: nC2 − mC2 + 1
- Triangles from n points, m collinear: nC3 − mC3
- Triangles from the vertices of an n-gon with no side common with it: n(n − 4)(n − 5)/6
Derangements
A derangement is an arrangement in which no object is in its own place, such as letters all put into wrong envelopes. The count follows from inclusion-exclusion.
Learn the first values: D₁ = 0, D₂ = 1, D₃ = 2, D₄ = 9, D₅ = 44. For exactly k objects in their correct places out of n, choose which k are correct and derange the rest.
- Dₙ = n![1 − 1/1! + 1/2! − 1/3! + … + (−1)ⁿ/n!]
- Dₙ = (n − 1)(Dₙ₋₁ + Dₙ₋₂)
- Exactly k correct out of n: nCk × D(n − k)
Solved examples
- In how many ways can 5 boys and 5 girls sit around a round table so that boys and girls sit alternately?
- Seat the boys first around the table: (5 − 1)! = 24 ways.
- This creates 5 distinct gaps, one between each pair of neighbouring boys. The 5 girls fill them in 5! = 120 ways.
- Total = 24 × 120 = 2880.
Answer: 2880 - How many arrangements of the letters of CALCULUS are there, and in how many of them are the vowels together?
- CALCULUS has 8 letters: C twice, L twice, U twice, A once, S once. Total = 8!/(2! 2! 2!) = 40320/8 = 5040.
- Vowels A, U, U form one block. The units are C, C, L, L, S and the block: 6 units with C and L repeated, so 6!/(2! 2!) = 180.
- Inside the block A, U, U can be arranged in 3!/2! = 3 ways. Answer = 180 × 3 = 540.
Answer: 5040 in all; 540 with the vowels together - Priya has 4 identical mangoes, 3 identical apples and 2 identical oranges. In how many ways can she choose at least one fruit?
- Only the number of each fruit matters: mangoes 0 to 4 (5 choices), apples 0 to 3 (4 choices), oranges 0 to 2 (3 choices).
- That gives 5 × 4 × 3 = 60 selections, including the empty one.
- At least one fruit: 60 − 1 = 59.
Answer: 59 - In how many ways can 10 identical chocolates be shared among 4 children so that each child gets at least one?
- Give one chocolate to each child first; 6 remain to be shared with no restriction.
- Non-negative solutions of a + b + c + d = 6: (6 + 3)C3 = 9C3 = 84.
- Equivalently, positive solutions of a + b + c + d = 10: 9C3 = 84.
Answer: 84 - A set of 6 parallel lines is cut by another set of 4 parallel lines. How many parallelograms are formed?
- Each parallelogram is bounded by 2 lines from the first set and 2 from the second.
- Choices: 6C2 = 15 and 4C2 = 6.
- Parallelograms = 15 × 6 = 90.
Answer: 90 - Ayesha writes 5 letters and addresses 5 envelopes. In how many ways can the letters be put in the envelopes so that exactly one letter is in its correct envelope?
- Choose the one letter that is correct: 5C1 = 5 ways.
- The other 4 letters must all be wrong: D₄ = 4!(1 − 1 + 1/2 − 1/6 + 1/24) = 24 − 24 + 12 − 4 + 1 = 9.
- Answer = 5 × 9 = 45.
Answer: 45
Exam shortcuts
- Read whether the objects and the places are identical or distinct before choosing a formula; this one decision settles most distribution questions.
- For 'no two together', arrange the unrestricted items first and drop the restricted ones into the gaps.
- Round table: (n − 1)!. Necklace or garland that can be flipped: (n − 1)!/2. A fixed head seat makes it a straight-line problem.
- Remember D₃ = 2, D₄ = 9 and D₅ = 44; derangement questions in entry tests rarely go beyond n = 5.
- For 'at least one' selections, count everything and subtract the empty or unwanted case.
Common mistakes
- Using n! instead of (n − 1)! for a round table, or forgetting to halve for a necklace.
- Confusing 'not all together' (total minus all together) with 'no two together' (gap method).
- Applying stars and bars to distinct objects, or rⁿ to identical objects.
- Forgetting to add back the single line formed by collinear points when counting lines.
- Dividing by 3! when the groups are given to named people; divide only when the groups are unlabelled and of equal size.
Practice MCQs
- If nC8 = nC6, what is the value of nC2?
A) 182
B) 105
C) 78
D) 91
Answer: D) 91 — nCa = nCb with a ≠ b means a + b = n, so n = 14 and 14C2 = 14 × 13/2 = 91. 105 = 15C2 and 78 = 13C2 come from wrong values of n, and 182 = 14P2 forgets to divide by 2!. - In how many ways can 6 different beads be strung into a necklace?
A) 60
B) 360
C) 120
D) 720
Answer: A) 60 — Rotations and flips give the same necklace, so the count is (6 − 1)!/2 = 120/2 = 60. 120 is the round-table count without halving, 720 is a straight line, and 360 halves 6! instead of 5!. - How many different arrangements can be made of all the letters of the word PAKISTAN?
A) 5040
B) 20160
C) 40320
D) 10080
Answer: B) 20160 — PAKISTAN has 8 letters with A repeated twice and all others different, so 8!/2! = 40320/2 = 20160. 40320 ignores the repeated A, 10080 divides by 4 as if two letters repeated, and 5040 is 7!. - Eight guests, including Hamza and Neha, sit at a round table with 8 equally spaced seats. In how many ways can they sit if Hamza and Neha must sit exactly opposite each other?
A) 720
B) 1440
C) 120
D) 5040
Answer: A) 720 — Seat Hamza anywhere; by symmetry this fixes the circle. Neha's seat is then forced (opposite), and the other 6 guests fill 6 seats in 6! = 720 ways. 5040 = 7! ignores the condition, 1440 wrongly doubles for swapping Hamza and Neha (already counted), and 120 = 5! drops a guest. - How many positive divisors does 720 have?
A) 24
B) 30
C) 29
D) 60
Answer: B) 30 — 720 = 2⁴ × 3² × 5, so the number of divisors is (4 + 1)(2 + 1)(1 + 1) = 5 × 3 × 2 = 30. 24 uses the exponents without adding 1 to the first, 29 wrongly removes the divisor 1, and 60 doubles the count. - How many solutions in non-negative integers does x + y + z = 10 have?
A) 36
B) 120
C) 66
D) 55
Answer: C) 66 — Stars and bars: (10 + 3 − 1)C(3 − 1) = 12C2 = 66. 36 = 9C2 counts only positive solutions, 55 = 11C2 uses n + r − 2, and 120 = 10C3 mixes up the formula. - A polygon has 44 diagonals. How many sides does it have?
A) 10
B) 9
C) 12
D) 11
Answer: D) 11 — n(n − 3)/2 = 44 gives n² − 3n − 88 = 0, so (n − 11)(n + 8) = 0 and n = 11. A 10-gon has 35 diagonals, a 12-gon 54 and a 9-gon 27. - There are 12 points in a plane, of which exactly 5 are collinear and no other three are collinear. How many different straight lines can be drawn through pairs of these points?
A) 47
B) 66
C) 57
D) 56
Answer: C) 57 — All pairs give 12C2 = 66, but the 5 collinear points give only 1 line instead of 5C2 = 10. Lines = 66 − 10 + 1 = 57. 66 ignores the collinearity, 56 forgets to add back the one line, and 47 subtracts 5C2 twice. - In how many ways can 5 boys and 3 girls stand in a row so that no two girls are next to each other?
A) 14400
B) 4320
C) 36000
D) 2880
Answer: A) 14400 — Arrange the boys: 5! = 120. They create 6 gaps; place the 3 girls in 3 of them in 6P3 = 120 ways. Total = 120 × 120 = 14400. 4320 is the number with all three girls together, 36000 = 8! − 4320 counts 'not all together', which still allows two girls side by side, and 2880 uses only 4 gaps. - In how many ways can 5 different balls be put into 3 different boxes so that no box is empty?
A) 243
B) 60
C) 150
D) 125
Answer: C) 150 — Without restriction there are 3⁵ = 243 ways. Subtract those missing a box: 3 × 2⁵ = 96, then add back those missing two boxes: 3 × 1 = 3. Answer = 243 − 96 + 3 = 150. 243 allows empty boxes, 125 = 5³ reverses base and power, and 60 = 5P3 treats it as an arrangement. - How many triangles can be formed by joining the vertices of a 12-sided polygon so that no side of the triangle is a side of the polygon?
A) 100
B) 112
C) 120
D) 220
Answer: B) 112 — Using n(n − 4)(n − 5)/6 = 12 × 8 × 7/6 = 112. Check: of the 220 triangles in all, 12 share two sides with the polygon and 12 × 8 = 96 share exactly one, and 220 − 12 − 96 = 112. 220 counts every triangle, and 120 and 100 come from subtracting the wrong number of bad cases. - Five letters are placed at random in five addressed envelopes, one in each. In how many ways can every letter go into a wrong envelope?
A) 44
B) 24
C) 119
D) 45
Answer: A) 44 — D₅ = 120(1 − 1 + 1/2 − 1/6 + 1/24 − 1/120) = 60 − 20 + 5 − 1 = 44. 45 is the number with exactly one letter correct, 119 = 5! − 1 counts every arrangement except the all-correct one, and 24 = 4! is unrelated. - Five students hand in their phones and get them back at random. In how many ways do exactly 2 students get their own phones?
A) 40
B) 10
C) 20
D) 60
Answer: C) 20 — Choose the 2 lucky students: 5C2 = 10. The other 3 must all be wrong: D₃ = 2. Answer = 10 × 2 = 20. 10 forgets the derangement factor, 60 = 10 × 3! lets the other three get anything (including their own), and 40 doubles D₃. - In how many ways can 12 different books be tied into 3 bundles of 4 books each?
A) 495
B) 34650
C) 1925
D) 5775
Answer: D) 5775 — Giving 4 books to each of three named people: 12C4 × 8C4 × 4C4 = 495 × 70 = 34650. The bundles are not labelled, so divide by 3! = 6: 5775. 34650 treats the bundles as labelled, 495 chooses only the first bundle, and 1925 divides by 18 instead of 6. - All arrangements of the letters A, I, N, Q and V are listed in dictionary order. What is the position (rank) of the word NAQVI?
A) 51
B) 52
C) 49
D) 53
Answer: B) 52 — Words beginning with A or I: 2 × 4! = 48. Then N A comes first among N-words. After NA, the letters I, Q, V remain; words NAI.. come first: 2! = 2. After NAQ, the letters I, V remain and NAQIV comes before NAQVI: 1. Rank = 48 + 0 + 2 + 1 + 1 = 52. 51 forgets to count the word itself, while 53 and 49 miscount the blocks.
Questions
Why is a circular arrangement (n − 1)! and not n!?
Turning the whole table round does not create a new seating, and each seating appears in n rotated forms. Dividing n! by n gives (n − 1)!.
When do I divide by 2 in circular problems?
Only when clockwise and anticlockwise orders are the same, as with a necklace or garland that can be turned over. People at a table are not divided by 2, because left and right neighbours are different.
How do I know whether to use stars and bars?
Use it when identical items go into distinct boxes, or when counting integer solutions of x₁ + … + xᵣ = n. If the items are different, each item chooses a box independently instead.
What is a quick way to compute small derangements?
Use Dₙ = (n − 1)(Dₙ₋₁ + Dₙ₋₂) with D₁ = 0 and D₂ = 1: D₃ = 2(1 + 0) = 2, D₄ = 3(2 + 1) = 9, D₅ = 4(9 + 2) = 44.