Permutations and Combinations: Formulas, Tricks, Solved Examples
Permutations and combinations are the mathematics of counting without listing. A permutation counts arrangements, where order matters; a combination counts selections, where it does not. The whole topic rests on one idea, the multiplication principle, and on asking one question for every problem: does changing the order give a new outcome? This chapter is also the foundation of probability.
Asked in: GAT, HAT, NTS, ECAT, SSC CGL, IBPS PO, SBI PO, CAT
The fundamental counting principle
If one job can be done in m ways and, after it, a second job in n ways, both together can be done in m × n ways. Use multiplication for AND (one step then another).
If a task can be done either in m ways or in n ways (but not both), the total is m + n. Use addition for OR (separate cases).
Example: 3 shirts and 4 trousers give 3 × 4 = 12 outfits. Going by one of 3 trains or one of 2 buses gives 3 + 2 = 5 options.
Factorials and permutations
n! (n factorial) = n × (n − 1) × … × 2 × 1, with 0! = 1. It counts the ways to arrange n different things in a row.
nPr counts the ways to arrange r things chosen from n different things, where order matters: the first place has n choices, the next n − 1, and so on for r places.
- n! = n × (n − 1) × … × 1, 0! = 1
- P(n, r) = n! ÷ (n − r)!
- Example: P(6, 3) = 6 × 5 × 4 = 120
Combinations
nCr counts the ways to choose r things from n when order does not matter, such as teams, committees or handshakes. It equals nPr divided by r!, because each group of r can be arranged in r! orders.
Choosing r things is the same as rejecting n − r things, so C(n, r) = C(n, n − r). Use this to shorten work: C(20, 18) = C(20, 2) = 190.
- C(n, r) = n! ÷ (r! × (n − r)!)
- C(n, r) = C(n, n − r)
- C(n, 0) = C(n, n) = 1
- Total subsets of n things = 2ⁿ
Arrangements with repeated items
If some items are identical, swapping them gives no new arrangement, so divide by the factorial of each repeat count.
MISSISSIPPI has 11 letters with I four times, S four times and P twice, so it has 11! ÷ (4! × 4! × 2!) = 34650 arrangements.
- Arrangements = n! ÷ (p! × q! × r! …)
Together, apart and fixed positions
Always together: glue the items into one block, arrange the blocks, then multiply by the arrangements inside the block.
Never together: total arrangements minus the arrangements where they are together. For many items that must not be next to each other, place the others first and put these in the gaps.
Restricted places (first digit not 0, vowels in even places): fill the restricted places first, then the rest.
- Together: (blocks)! × (inside the block)!
- Not together = total − together
Circular arrangements and geometry counts
Around a round table only relative positions matter, so fix one person and arrange the rest: (n − 1)!. For a necklace or garland, which can also be flipped over, divide by 2 as well.
Geometry: a line needs 2 points and a triangle needs 3 non-collinear points, so count with combinations and subtract the cases that fail.
- Circular seating = (n − 1)!
- Necklace of n different beads = (n − 1)! ÷ 2
- Diagonals of an n-sided polygon = n(n − 3) ÷ 2
- Handshakes among n people = C(n, 2)
Solved examples
- How many 3-digit numbers can be formed from the digits 1, 2, 3, 4, 5, 6 if no digit is repeated?
- Order matters (123 and 321 are different numbers), so this is an arrangement.
- Hundreds place: 6 choices. Tens place: 5 remaining. Units place: 4 remaining.
- Multiply: 6 × 5 × 4.
- = 120, which is P(6, 3).
Answer: 120 - In how many ways can the letters of the word KARACHI be arranged?
- KARACHI has 7 letters: K, A, R, A, C, H, I.
- The letter A appears twice; all others appear once.
- Arrangements = 7! ÷ 2! = 5040 ÷ 2.
- = 2520.
Answer: 2520 - A committee of 5 is to be chosen from 6 men and 4 women so that it has exactly 2 women. In how many ways can it be done?
- Exactly 2 women means 2 women and 3 men.
- Choose the women: C(4, 2) = 6 ways.
- Choose the men: C(6, 3) = 20 ways.
- Both choices together: 6 × 20 = 120 ways.
Answer: 120 - In how many ways can the letters of PUNJAB be arranged so that the vowels always come together?
- PUNJAB has 6 different letters; the vowels are U and A.
- Glue U and A into one block. Now there are 5 items: P, N, J, B and the block.
- The 5 items can be arranged in 5! = 120 ways, and inside the block U and A can be ordered in 2! = 2 ways.
- Total = 120 × 2 = 240.
Answer: 240 - Seven friends, including Ayesha and Priya, sit around a round table. In how many ways can they sit if Ayesha and Priya must not sit next to each other?
- All circular arrangements of 7 people: (7 − 1)! = 720.
- Together: treat Ayesha and Priya as one unit, giving 6 units: (6 − 1)! = 120, times 2 for their order = 240.
- Not together = total − together.
- = 720 − 240 = 480.
Answer: 480 - How many 4-digit even numbers can be formed from the digits 0, 1, 2, 3, 4, 5 if no digit is repeated?
- The number is even, so the last digit is 0, 2 or 4. Zero needs separate treatment because it cannot be first.
- Last digit 0: the first three places take any of the other 5 digits: 5 × 4 × 3 = 60.
- Last digit 2 or 4 (2 cases): the first digit cannot be 0 or the used digit, so 4 choices, then 4 and 3: 4 × 4 × 3 = 48 each, so 96.
- Total = 60 + 96 = 156.
Answer: 156
Exam shortcuts
- Ask "does order matter?" first. Arranging, ranking, forming numbers and words: permutation. Choosing teams, groups, handshakes: combination.
- Use C(n, r) = C(n, n − r) to keep calculations small: C(15, 13) = C(15, 2) = 105.
- For "at least one" questions, subtract the "none" case from the total instead of adding many cases.
- In digit problems, always fill the restricted place first (first digit not 0, last digit even or 5) and split into cases when 0 is involved.
- For "together" glue the items into one block; for "not together" use total minus together.
- Keep the small factorials in memory: 4! = 24, 5! = 120, 6! = 720, 7! = 5040, 8! = 40320.
Common mistakes
- Using permutations when the question asks for a selection, which overcounts by a factor of r!.
- Forgetting to divide by the factorials of repeated letters in words like BANANA or SUCCESS.
- Using n! instead of (n − 1)! for people around a round table.
- Allowing 0 as the first digit of a number, or forgetting to split cases when 0 is one of the digits.
- Adding when you should multiply: choosing men AND women means multiply the two counts.
Practice MCQs
- In how many ways can 5 students stand in a single queue?
A) 120
B) 25
C) 60
D) 24
Answer: A) 120 — The first place has 5 choices, the next 4, then 3, 2 and 1. Total = 5! = 120. - At a meeting of 12 people, every person shakes hands once with every other person. How many handshakes take place?
A) 132
B) 144
C) 66
D) 78
Answer: C) 66 — Each handshake is a choice of 2 people out of 12, order not mattering: C(12, 2) = 12 × 11 ÷ 2 = 66. - There are 4 bus services from Lahore to Islamabad and 3 from Islamabad to Murree. In how many ways can Hamza travel from Lahore to Murree through Islamabad?
A) 7
B) 12
C) 24
D) 81
Answer: B) 12 — The two legs are done one after the other, so multiply: 4 × 3 = 12 ways. - In how many ways can a team of 3 be chosen from 8 players?
A) 336
B) 24
C) 112
D) 56
Answer: D) 56 — Order does not matter in a team, so use C(8, 3) = (8 × 7 × 6) ÷ (3 × 2 × 1) = 56. (336 would be the number of ordered arrangements.) - How many different arrangements can be made of the letters of the word BANANA?
A) 60
B) 720
C) 120
D) 36
Answer: A) 60 — 6 letters with A repeated 3 times and N repeated 2 times: 6! ÷ (3! × 2!) = 720 ÷ 12 = 60. - How many diagonals does a polygon with 10 sides have?
A) 45
B) 35
C) 40
D) 30
Answer: B) 35 — Any 2 of the 10 corners can be joined in C(10, 2) = 45 ways. Of these, 10 are sides, so diagonals = 45 − 10 = 35. Formula: n(n − 3) ÷ 2 = 10 × 7 ÷ 2 = 35. - How many 3-digit numbers less than 400 can be formed from the digits 2, 3, 5, 6, 7, 9 if no digit is repeated?
A) 60
B) 120
C) 48
D) 40
Answer: D) 40 — The hundreds digit must be 2 or 3: 2 choices. The tens digit then has 5 choices and the units digit 4. Total = 2 × 5 × 4 = 40. - There are 10 points in a plane, of which exactly 4 lie on one straight line and no other three are in a line. How many triangles can be formed using these points as corners?
A) 120
B) 112
C) 116
D) 100
Answer: C) 116 — Any 3 points give C(10, 3) = 120 choices, but 3 points chosen from the 4 collinear ones make no triangle: C(4, 3) = 4. Triangles = 120 − 4 = 116. - In how many ways can the letters of LAHORE be arranged so that the vowels occupy only the even positions (2nd, 4th and 6th)?
A) 36
B) 72
C) 144
D) 720
Answer: A) 36 — The 3 vowels A, O, E fill the 3 even places in 3! = 6 ways, and the 3 consonants L, H, R fill the odd places in 3! = 6 ways. Total = 6 × 6 = 36. - A committee of 3 men and 2 women is to be formed from 7 men and 5 women. In how many ways can this be done?
A) 45
B) 792
C) 175
D) 350
Answer: D) 350 — Choose the men in C(7, 3) = 35 ways and the women in C(5, 2) = 10 ways. Both choices are made together, so multiply: 35 × 10 = 350. - Six friends, including Ali and Ravi, sit around a circular table. In how many ways can they sit if Ali and Ravi must always sit next to each other?
A) 24
B) 120
C) 48
D) 240
Answer: C) 48 — Tie Ali and Ravi into one unit. Then 5 units sit around a circle in (5 − 1)! = 24 ways, and the pair can swap seats in 2 ways. Total = 24 × 2 = 48. - A group of 4 is to be chosen from 6 boys and 4 girls so that it has at least one girl. In how many ways can this be done?
A) 210
B) 195
C) 209
D) 180
Answer: B) 195 — Total groups = C(10, 4) = 210. Groups with no girl = C(6, 4) = 15. At least one girl = 210 − 15 = 195. - How many different arrangements are there of the letters of the word SUCCESS?
A) 420
B) 840
C) 5040
D) 210
Answer: A) 420 — 7 letters with S three times and C twice: 7! ÷ (3! × 2!) = 5040 ÷ 12 = 420. - How many 4-digit numbers divisible by 5 can be formed from the digits 0 to 9 if no digit is repeated?
A) 1008
B) 504
C) 952
D) 896
Answer: C) 952 — Last digit 0: the other three places take 9 × 8 × 7 = 504. Last digit 5: the first digit cannot be 0 or 5, so 8 choices, then 8 and 7: 8 × 8 × 7 = 448. Total = 504 + 448 = 952. - In how many arrangements of the letters of ARRANGE are the two Rs not next to each other?
A) 1260
B) 360
C) 720
D) 900
Answer: D) 900 — All arrangements: 7! ÷ (2! × 2!) = 1260 (A and R each appear twice). With the two Rs glued as one block there are 6 items with A twice: 6! ÷ 2! = 360. Not together = 1260 − 360 = 900.
Questions
What is the difference between a permutation and a combination?
A permutation is an arrangement, so order matters: AB and BA are different. A combination is a selection, so order does not matter: AB and BA are the same group. P(n, r) = C(n, r) × r!.
Why is 0! equal to 1?
There is exactly one way to arrange nothing. It also keeps the formulas consistent, for example C(n, n) = n! ÷ (n! × 0!) = 1.
Why is circular arrangement (n − 1)! and not n!?
Rotating everyone one seat around the table gives the same seating, since only neighbours matter. Fixing one person removes these n rotations, leaving (n − 1)! arrangements.
Which exams ask permutations and combinations?
It appears in GAT, HAT, NTS and ECAT papers in Pakistan and in SSC CGL, IBPS PO, SBI PO and CAT in India, often together with probability.