📘 CodingMarble Learn

Permutations and Combinations

Counting without listing is the heart of this chapter. The fundamental principle of counting says: if one job can be done in m ways and the next in n ways, both together can be done in m × n ways. n! (n factorial) is 1 × 2 × … × n, with 0! = 1. A permutation is an arrangement, where order matters: the number of ways to arrange r things out of n different things is ⁿPᵣ = n!/(n − r)!. A combination is a selection, where order does not matter: ⁿCᵣ = n!/(r!(n − r)!). Each selection of r things can be arranged in r! ways, so ⁿPᵣ = ⁿCᵣ × r!. Useful facts: ⁿCᵣ = ⁿCₙ₋ᵣ and ⁿCᵣ + ⁿCᵣ₋₁ = ⁿ⁺¹Cᵣ. When some objects repeat, divide by the factorial of each repeat count.

🎬 Step-by-step story

  1. You have 3 shirts and 2 trousers. Each shirt can go with either trouser. Watch the outfits appear one by one: 3 × 2 = 6. This is the counting principle.
  2. Put 4 balls into 4 slots. Slot 1 has 4 choices, slot 2 has 3 left, then 2, then 1. So there are 4 × 3 × 2 × 1 = 24 ways. We write this as 4! (4 factorial).
  3. 5 runners race for gold, silver and bronze. Gold can go to 5 people, silver to 4, bronze to 3. Order matters here, so ⁵P₃ = 5 × 4 × 3 = 60.
  4. Now pick a team of 3 from the same 5. Blue, red, green in any order is the same team. Watch one team shuffle through its 3! = 6 orders. So teams = 60 ÷ 6 = 10.
  5. Choosing 3 players to go is the same as choosing 2 to stay. Each team of 3 leaves exactly one group of 2. So ⁵C₃ = ⁵C₂. In general ⁿCᵣ = ⁿCₙ₋ᵣ.
  6. Free play: change n and r with the sliders. See the slot choices, then ⁿPᵣ and ⁿCᵣ worked out. Tap Shuffle to see the r! orders of one choice.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do we multiply and not add in the counting principle?

Because every shirt pairs with every trouser. In the 3D each shirt gets 2 outfits, three times: 2 + 2 + 2 = 3 × 2.

Why does each slot have one choice less?

A ball already placed cannot be used again. Watch the choice number drop 4, 3, 2, 1 as the balls move into the slots.

Why is 0! = 1 and not 0?

Arranging all n things is n!, and the formula n!/(n − n)! must also give n!. That works only if 0! = 1. There is exactly one way to arrange nothing: do nothing.

How do I know if order matters?

Swap two chosen things. If you get a different outcome (gold ↔ silver), it is a permutation. If it is still the same (same team), it is a combination. Compare steps 3 and 4.

Why do we divide by r! to get combinations?

Each team appears r! times among the arrangements. In step 4 one team shuffles through 6 orders, so 60 arrangements shrink to 10 teams.

Why is ⁿCᵣ = ⁿCₙ₋ᵣ?

Picking who goes automatically decides who stays. In step 5, every group of 3 in the gold ring matches exactly one group of 2 in the grey ring.

Fundamental principle of counting

Multiplication principle: if one event can happen in m ways, and after that a second event can happen in n ways, then both can happen one after the other in m × n ways. It extends to three or more events.

Example: a lock has 3 rings, each with digits 0–9. Codes = 10 × 10 × 10 = 1000.

Addition principle: if a job can be done in m ways or in n other ways (not both), it can be done in m + n ways. ‘And’ means multiply, ‘or’ means add.

Factorial notation

n! (read ‘n factorial’) = 1 × 2 × 3 × … × n for a natural number n. So 3! = 6, 4! = 24, 5! = 120, 6! = 720.

Permutations: the nPr formula

A permutation is an arrangement in a definite order. Arranging r objects from n different objects (no repeats): the first place has n choices, the second n − 1, …, the r-th has n − r + 1. So

ⁿPᵣ = n(n − 1)(n − 2)…(n − r + 1) = n!/(n − r)!, 0 ≤ r ≤ n.

Combinations: the nCr formula and its link to nPr

A combination is a selection where order does not matter. Every selection of r objects can be arranged in r! ways, and doing this for every selection gives all ⁿPᵣ arrangements. So

ⁿPᵣ = ⁿCᵣ × r!, which gives ⁿCᵣ = n!/(r!(n − r)!).

Simple uses: which one do I use?

Ask: does order change the outcome? Seating, ranking, forming numbers or words, passwords → permutation. Teams, committees, handshakes, choosing questions, groups of fruits → combination.

Board exam focus

Expect: find n from an equation like ⁿP₄ = 12 · ⁿP₂ (2–3 marks), arranging letters with repetition or conditions (3–4 marks), committees with ‘at least’ (3–4 marks), and ⁿCᵣ = ⁿCₙ₋ᵣ style questions (1–2 marks). Show the counting reason in words before the numbers.

Key formulas and definitions

Worked examples

1. How many 3-digit numbers can be formed from the digits 1, 2, 3, 4, 5 if (i) digits may repeat (ii) digits may not repeat?

(i) Each place has 5 choices: 5 × 5 × 5 = 125. (ii) 5 choices, then 4, then 3: 5 × 4 × 3 = 60 = ⁵P₃.

2. Find 8!/(6! × 2!).

8! = 8 × 7 × 6!, so 8!/6! = 56. Divide by 2! = 2: 56/2 = 28 (this is ⁸C₂).

3. In how many ways can 6 people sit in a row of 6 chairs? In how many of these do two friends A and B sit together?

All: 6! = 720. Together: glue A and B into one block, giving 5 units, arranged in 5! = 120 ways. Inside the block A and B can swap: 2! = 2. Total 120 × 2 = 240.

4. How many different words (with or without meaning) can be made from all the letters of BANANA?

6 letters: B×1, A×3, N×2. Words = 6!/(3! · 2!) = 720/12 = 60.

5. Find n if ⁿP₅ = 42 · ⁿP₃ (n > 4).

n(n−1)(n−2)(n−3)(n−4) = 42 · n(n−1)(n−2). Cancel: (n − 3)(n − 4) = 42 = 7 × 6. So n − 3 = 7, n = 10.

6. A committee of 3 men and 2 women is to be chosen from 6 men and 5 women. In how many ways?

Men: ⁶C₃ = 20. Women: ⁵C₂ = 10. Both are needed (‘and’), so multiply: 20 × 10 = 200.

7. If ⁿC₉ = ⁿC₈, find ⁿC₁₇.

ⁿCₐ = ⁿC_b with a ≠ b means a + b = n, so n = 17. Then ¹⁷C₁₇ = 1.

8. From 4 red and 5 blue balls, how many ways to choose 3 balls with at least 2 red?

Case 2 red + 1 blue: ⁴C₂ × ⁵C₁ = 6 × 5 = 30. Case 3 red: ⁴C₃ = 4. Cases are separate (‘or’), so add: 30 + 4 = 34.

Common mistakes

Practice quiz

1. 5! equals:
2. ⁶P₂ equals:
3. ⁷C₅ equals:
4. Which situation is a combination?
5. ⁿPᵣ ÷ ⁿCᵣ equals:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between permutation and combination?

A permutation counts arrangements, where order matters (ⁿPᵣ = n!/(n − r)!). A combination counts selections, where order does not matter (ⁿCᵣ = n!/(r!(n − r)!)). ⁿPᵣ is always r! times ⁿCᵣ.

Are circular permutations in the CBSE 2026-27 Class 11 syllabus?

The syllabus lists the counting principle, factorial, permutations and combinations with their formulas and link, and simple applications. This lesson covers exactly those, including arrangements with repeated objects.

How do I solve ‘at least’ questions?

Split into separate cases (for example exactly 2, exactly 3), count each with the multiplication principle, and add the cases.

Where this is taught

Canada (Ontario)Grade 12A. Counting and Probability
NetherlandsHAVO 4 (bovenbouw, 2e fase)Algebra and counting
NetherlandsHAVO 4 (bovenbouw, 2e fase)Statistics and probability (part 1)
NetherlandsVWO 4 (bovenbouw, 2e fase)Algebra and counting
NetherlandsVWO 4 (bovenbouw, 2e fase)Algebra and counting
NetherlandsVWO 4 (bovenbouw, 2e fase)Probability and statistics (part 1)
PolandLiceum ogólnokształcące, klasa IVCombinatorics
PolandLiceum ogólnokształcące, klasa IVCombinatorics
RomaniaClasa a X-aCounting methods
RomaniaClasa a X-aCounting methods
RomaniaClasa a X-aFinancial mathematics
Spain2º ESONumber sense
Spain3º ESONumber sense
Spain4º ESONumber sense
Spain1º BachilleratoNumber Sense
Spain1º BachilleratoNumber sense
Ukraine9 класMathematical tasks and real-world processes
Ukraine11 класAlgebra: combinatorics and probability (30 h)
Ukraine11 класAlgebra: combinatorics, probability and statistics (10 h)
CBSE (India)Class 11Combinatorics and Probability
CBSE (India)Class 11Algebra
USA (Common Core, NGSS, AP)Grade 10Applications of probability
Japan高校1年Counting and probability
Japan高校(専門学科)1〜3年Advanced Mathematics I
South Korea중학교 2학년Probability
South Korea고등학교 1학년Counting
South Korea고등학교 1학년Counting
South Korea고등학교 2학년Society and mathematics
South Korea고등학교 2학년Counting
South Korea고등학교 2학년Data and chance
South Korea고등학교 3학년Counting
FranceTerminaleAlgebra and geometry
Russia9 классCombinatorics
Russia10 классCombinatorics and trials
China高三Ch.6 Counting principles

Learn first

Learn next

Related lessons

All Maths lessons