In review — free for everyone. While a book is in review you are one of its reviewers: read it, use it, and tell us what is wrong. When the reports settle, the Class 11 pass is ₹999 for the year and this book’s PDF is ₹299.
One question decides everything
Three friends — Asha, Bilal and Chen — and two things to do with them.
FIRST, pick two of them to be joint captains. List the possibilities. Asha and Bilal. Asha and Chen. Bilal and Chen. Three ways.
Is “Bilal and Asha” a fourth? No. That is the same pair said in a different order, and the pair is what was asked for.
SECOND, pick one to be captain and one to be vice-captain. List again. Asha as captain with Bilal deputy is one outcome; Bilal as captain with Asha deputy is another, because the two people now hold different jobs. Working through all of them gives six ways, not three.
Same three people, same “choose two”, and the answers differ by a factor of two.
What separated them was one question: DOES ORDER MATTER?
When it does, each arrangement is its own outcome and you are counting PERMUTATIONS. When it does not, only the group counts and you are counting COMBINATIONS.
Every formula in this chapter is an answer to that question. Getting the question wrong does not give an approximately right count. It gives one that is wrong by a definite factor, and nothing in the working looks amiss.
Read the problem for the question first and reach for a formula second.
Multiplying choices across stages
The FUNDAMENTAL PRINCIPLE OF COUNTING, also called the multiplication principle, sits underneath everything else in the chapter.
It says this. Suppose one task can be done in $m$ ways. Suppose that, after it is done, a second task can be done in $n$ ways. Then the two together can be done in $m \times n$ ways.
The reason is worth seeing rather than accepting. Each of the $m$ ways of doing the first task opens up the full set of $n$ ways of doing the second. So there are $n$ outcomes hanging off the first choice, $n$ more off the second, and so on through all $m$ of them. Adding $n$ to itself $m$ times is $m \times n$.
The principle extends to as many stages as you like. Three tasks in succession with $m$, $n$ and $p$ choices give $m \times n \times p$ outcomes. Multiply the choices available at each stage and you have the total.
The words to listen for are AND THEN. This task AND THEN that one. That phrasing is what allows the multiplication.
Count the stages, count the choices at each, multiply. Most counting problems are this principle in a disguise.
A café offers 4 starters and 5 mains. How many starter-and-main meals are possible?
Two stages: choose a starter, and then choose a main.
Stage one has 4 choices. Whichever starter you took, stage two still has all 5 mains available — picking a starter does not remove a main from the menu.
So the count is $4 \times 5 = 20$.
If listing feels safer, list the first row. Starter 1 pairs with main 1, main 2, main 3, main 4, main 5 — five meals. Starter 2 does the same, another five. Four starters at five meals each is twenty meals.
Notice what is NOT being asked. Nobody is choosing between having a starter and having a main. Both are taken, one after the other, which is exactly the AND THEN the multiplication principle needs.
Twenty meals out of nine dishes. Multiplying stages grows a menu much faster than adding dishes does.
Adding choices across alternatives
Not every count multiplies. The other case is when the choices are ALTERNATIVES rather than stages.
The ADDITION PRINCIPLE covers it. Say a task can be done in one of several MUTUALLY EXCLUSIVE ways. A first method gives $m$ outcomes, a second gives $n$, and no outcome is reachable by both. Then the total is $m + n$.
The distinction is a matter of words in the problem, and there are two to listen for.
AND THEN means stages. Do this, then do that, and both happen. That multiplies.
EITHER-OR means alternatives. Do this or do that, but not both. That adds.
The phrase “mutually exclusive” is doing real work in the statement. If an outcome can be reached both ways, adding counts it twice and the total comes out too big. The two lists have to be genuinely separate before their sizes may be added.
Getting this backwards is not a near miss. Four starters and five mains gives 20 meals but only 9 single dishes, and those two numbers answer completely different questions.
Ask whether both things happen or only one. Both happen means multiply. Only one means add.
A student will read ONE book, chosen either from a shelf of 3 novels or from a shelf of 2 biographies. How many choices are there?
Test the two conditions before counting.
Are the options mutually exclusive? Yes. No book is both a novel and a biography, so the two shelves share nothing.
Do both happen? No. The student takes one book, not one from each shelf.
So this is either-or, and the counts add: $3 + 2 = 5$.
Listing confirms it. Novel 1, novel 2, novel 3, biography 1, biography 2 — five books, and the student can end up with any one of them.
Compare it with the café. There a meal needed a starter AND THEN a main, so $4 \times 5 = 20$. Here the reader takes one book from EITHER shelf, so $3 + 2 = 5$.
Change the question to one novel and then one biography, both to be read, and it multiplies again: $3 \times 2 = 6$.
The same two shelves give 5 or 6 depending only on the connecting word. Read the word.
Factorials
Arranging things produces one particular kind of product often enough to earn its own symbol.
For a positive integer $n$, $n!$ — read “n factorial” — is the product of every integer from $n$ down to 1: $n! = n \times (n-1) \times (n-2) \times \ldots \times 2 \times 1$.
Where it comes from is the multiplication principle. To arrange $n$ distinct objects in a row, there are $n$ choices for the first place. One object has now been used, so the second place has $n-1$ choices, the third has $n-2$, and so on down to a single choice for the last. Multiply them all and you have $n!$.
Factorials grow ferociously. $5! = 120$, ten factorial is already 3,628,800, and twenty factorial passes two quintillion.
One value is set by convention rather than by the product: $0! = 1$. Not 0. That looks arbitrary and it is not. With $0! = 1$ the permutation and combination formulas keep working in the case where nothing is left over to arrange; fixing it at 0 would put a zero in a denominator and break them.
*$n!$ is the multiplication principle applied to arranging everything. The shrinking choices are where each factor comes from.*
Evaluate $5!$ and simplify $5!/3!$
- $5! = 5 \times 4 \times 3 \times 2 \times 1 = 120$
the first is direct. - $5! = 5 \times 4 \times 3!$
for $5!/3!$, do not evaluate both and divide — write the top so the bottom appears inside it. - $(5 \times 4 \times 3!)/3! = 5 \times 4 = 20$
the $3!$ cancels top and bottom, leaving only the top factors. - $5!/(5-2)! = 5 \times 4$
the general shape worth keeping: $n!/(n-k)!$ always cancels down to the top $k$ factors of $n!$ — this is exactly why the permutation formula in the next section is written as a ratio of factorials, the ratio already cancelled. Never evaluate two factorials in order to divide them — split the larger until the smaller appears, then cancel.
Permutations: order matters, nothing repeats
Now the first of the two main formulas.
The number of PERMUTATIONS of $n$ distinct objects taken $r$ at a time — order matters, nothing repeats — is $P(n,r) = n!/(n-r)!$.
Build it from the multiplication principle and it stops looking like something to memorise. You are filling $r$ ordered positions from $n$ objects. The first position has $n$ choices. That object is now used up, so the second has $n-1$. The third has $n-2$. The last one, the $r$-th, has $n-r+1$.
Multiply those $r$ shrinking factors and you have the count. Writing it as $n!/(n-r)!$ is that same product expressed compactly — the division cancels everything below the $r$-th factor, which is exactly the part you did not want.
Two conditions are built into the formula and both matter. DISTINCT: the objects are all different from one another. NO REPEATS: once an object is used, it is gone.
The formula is shorthand for shrinking choices. If you forget it, count the positions and multiply down.
Count ways to choose a president and secretary from 6
- $6 \times 5 = 30$
count directly: president and secretary are distinct posts (order matters) and one person cannot hold both (no repeats) — a permutation. 6 choices for president, then 5 remaining choices for secretary. - $P(6,2) = 6!/4! = 6 \times 5 = 30$
the formula agrees — the cancellation reproduces the direct count exactly, which is what it is for. When a problem names the roles, order matters: named roles are the clearest signal that you want $P(n,r)$.
When repetition is allowed
Drop the no-repeats condition and the count changes completely.
If repetition IS allowed — the same object may be used in more than one position — then filling $r$ ordered positions from $n$ objects gives $n^r$ ways.
The reason is that nothing gets used up. The first position has $n$ choices. The second still has all $n$, because whatever went first is still available. So does the third, and every position after it. Multiplying $n$ by itself $r$ times gives $n^r$.
Put the two cases side by side and the difference is plain. Without repetition the choices shrink: $n$, then $n-1$, then $n-2$. With repetition they do not move: $n$, then $n$, then $n$.
The gap widens fast. From 10 objects in 3 ordered positions, $P(10,3) = 720$ but $10^3 = 1000$.
Notice too that $r$ may now exceed $n$. You cannot arrange 5 distinct objects in 7 positions without repeats, but you can perfectly well build a 7-character code from 5 symbols.
*Ask whether a used object comes back. If it does, the choices stay level and the answer is $n^r$.*
Count 3-digit codes from 0-9 with repetition
- $10 \times 10 \times 10 = 10^3 = 1000$
order matters (149 is not 941) and repetition is allowed (777 is legal) — the $n^r$ case, with $n=10$ digits and $r=3$ positions; using a digit does not consume it, so every position keeps all 10 choices. - codes $000$ to $999$
that is exactly 1000 codes — a satisfying check in itself. - $P(10,3) = 10 \times 9 \times 8 = 720$
compare the no-repeats version — the 280 codes lost are precisely the ones with a repeated digit. Repetition allowed keeps every position at full strength, which is what turns a shrinking product into a power.
When the objects are not all different
The third case: the objects being arranged are not all different.
Arranging $n$ objects in a row gives $n!$ — but only if they are all distinguishable. When some repeat, $n!$ OVERCOUNTS, and it is worth seeing why rather than patching it afterwards.
Suppose two of the objects are identical copies. The count $n!$ treats them as separate, so it counts an arrangement once with the first copy in a given slot and again with the second copy there. On the page those two arrangements look exactly the same. One outcome has been counted twice.
Every arrangement is overcounted by the same factor, and that uniformity is what makes the fix clean: divide it out once, at the end.
If the repeated items come in groups of sizes $p$, $q$, $r$ and so on, the number of genuinely distinct arrangements is $n!/(p! q! r!)$.
Each factorial underneath is the number of ways the copies inside one group could be shuffled among themselves without changing anything visible. Dividing removes exactly those, and nothing else.
Count as if everything were distinct, then divide out the swaps that made no difference.
Count distinct arrangements of LEVEL
- $5! = 120$
five letters, with L appearing twice and E appearing twice — if all five were different, this would be the answer, but 120 is too big since they are not. - $2! \times 2! = 4$
the two L’s could swap, and the two E’s could swap, without changing what is written on the page — every genuinely distinct word has been counted 4 times over. - $5!/(2! \times 2!) = 120/4 = 30$
divide out the overcounting — LEVEL has 30 distinct arrangements, not 120. The V needs no division, and that is consistent rather than an exception: it appears once, and $1! = 1$ changes nothing, so one factorial per repeated group, sized to that group, is all any word needs; unrepeated letters are already counted correctly.
Combinations: dividing the order back out
Back to the frame’s question, and the other answer to it.
A COMBINATION counts SELECTIONS, where order does not matter. The number of ways to choose $r$ objects from $n$ distinct objects is $C(n,r) = n!/(r!(n-r)!)$.
That formula is not new work. It is $P(n,r)$ with one extra division, and here is the whole argument.
Start with the ordered count, $P(n,r) = n!/(n-r)!$. Take any one group of $r$ objects. How many times did $P(n,r)$ count that group? Once for every ordering of those $r$ objects among themselves, which is $r!$ times.
So the ordered count is exactly $r!$ times too big for an unordered question. Divide by $r!$ and you have
$C(n,r) = P(n,r)/r! = n!/(r!(n-r)!) \cdot$
The $r!$ in the denominator is the entire difference between the two formulas. It is there for a stated reason: it removes the orderings the question said it did not care about.
A combination is a permutation with the ordering divided back out. Remember the reason and the formula follows from it.
Count 3-person committees from 6 people
- $C(6,3) = 6!/(3! \times 3!) = 720/36 = 20$
the word committee is the signal: members hold no distinct titles, so a committee of three particular people is the same committee however you list them — order does not matter, a combination; apply the formula with $n=6$, $r=3$. - $P(6,3) = 6 \times 5 \times 4 = 120$
compare against the ordered count — six times larger, and six is not a coincidence: it is $3!$, the number of orders one committee of three could be listed in. - $P(n,r)/r! = C(n,r)$
that relationship is a good check on any combination answer. Committee, team, group, selection: no titles and no order means $C(n,r)$; named roles mean $P(n,r)$.
Two identities that follow for free
Two identities drop out of what a combination counts, and neither needs the formula to be proved.
SYMMETRY: $C(n,r) = C(n, n-r)$.
Choosing which $r$ objects to INCLUDE settles, at the same moment, which $n-r$ objects to LEAVE OUT. One decision described from either end, so the two counts must be equal. It is also useful in practice: $C(20,18)$ is awkward, and $C(20,2)$ is the same number in one line.
PASCAL’S RULE: $C(n,r) + C(n, r-1) = C(n+1, r)$.
Take the $n+1$ objects and fix attention on one of them. Every selection of $r$ objects either leaves that one out or takes it in. There is no third case, and no selection is in both groups.
Leaving it out means choosing all $r$ from the remaining $n$, which is $C(n,r)$ ways. Taking it in means choosing the other $r-1$ from the remaining $n$, which is $C(n, r-1)$ ways.
The two groups are mutually exclusive, so by the addition principle their counts add to the total, $C(n+1, r)$.
Both identities are counting arguments, not algebra. Pascal’s rule is also what builds Pascal’s triangle, which the next chapter runs on.
Check the symmetry identity and Pascal’s rule on real numbers
- $C(10,7) = C(10,3)$
computing $C(10,7)$ head-on is doable but fiddly — use the symmetry identity instead, since $n-r=10-7=3$. - $C(10,3) = (10 \times 9 \times 8)/(3 \times 2 \times 1) = 720/6 = 120$
choosing 7 to include is the same count as choosing the 3 to leave out, and this direction is much the shorter calculation. - $C(9,3)+C(9,2) = 84+36 = 120$
Pascal’s rule, with $n=9$, $r=3$: the left side. - $C(10,3) = 120$
the right side, computed just above — they agree. When r is more than half of n, switch to $C(n,n-r)$ first: the answer is identical and the arithmetic is smaller.
Two questions, four formulas
Everything in this chapter answers the frame’s question, plus one more that came up along the way.
QUESTION ONE: does order matter? QUESTION TWO: can items repeat?
Before either, there are the two principles that combine counts. Successive stages MULTIPLY — this and then that. Mutually exclusive alternatives ADD — this or that, not both.
Then the formulas, all four settled by those two questions.
Order matters, no repetition: $P(n,r) = n!/(n-r)!$. Shrinking choices, written as a ratio.
Order matters, repetition allowed: $n^r$. Choices that never shrink, because nothing is used up.
Order matters, objects not all distinct: $n!/(p! q! r!)$, dividing out the swaps among identical copies that changed nothing visible.
Order does not matter: $C(n,r) = n!/(r!(n-r)!)$, which is $P(n,r)$ with the irrelevant orderings divided back out.
That last division is the source of everything on the combination side, symmetry and Pascal’s rule included.
Answer the two questions in words before writing any formula. The formula is then forced, and there is nothing left to guess.
Two traps this chapter sets
THE TRAP. Choosing 2 co-captains from 5 people, and choosing a captain and a vice-captain from 5 people, are the same problem. Both just pick 2 people out of 5, so both are $C(5,2)$.
THE REALITY. They differ by a factor of two. Co-captains give $C(5,2) = 10$. Captain and vice-captain give $P(5,2) = 20$.
The number chosen is identical in both, and it is not what decides anything.
CO-CAPTAINS is one unnamed, unordered pair. Two particular people as co-captains is the same outcome whichever way round you name them, because there is nothing to tell the two versions apart.
CAPTAIN AND VICE-CAPTAIN is two distinct posts. One person as captain with the other as deputy is a different arrangement from the reverse. Any pair can fill the two named posts in $2! = 2$ ways, and that 2 is exactly the ratio between the two answers.
So the deciding evidence is in the WORDS of the problem, not its numbers. Look for titles, ranks, positions, an order of finishing, a first and a second.
If the outcomes have names attached, order matters. If they are just a group, it does not.
THE TRAP. LEVEL has 5 letters, so its letters can be arranged in $5! = 120$ distinct ways.
THE REALITY. 30, not 120. The count is $5!/(2! \times 2!)$, because L appears twice and E appears twice.
What goes wrong is invisible in the arithmetic. $5!$ is the count for five DISTINGUISHABLE objects, and it silently treats the two copies of L as if you could tell them apart. Under that assumption swapping them makes a new arrangement. On the page it makes the same word.
The same applies to the two copies of E. Between them, every genuinely distinct arrangement gets counted $2! \times 2! = 4$ times over, which is where the factor of 4 between 120 and 30 comes from.
The rule to carry: any repeated item needs its group’s factorial divided out, however small the repeat. Even a single repeated pair halves the answer.
The habit that catches it is a count taken before the formula. Write the letters out, note which ones appear more than once, and put a factorial underneath for each.
*A repeated letter is easy to miss because nothing in $5!$ complains. Check for repeats first, every time.*
Practice set
- practice A restaurant menu offers 5 starters, 4 mains, and 3 desserts. How many different 3-course meals can be ordered, one item from each course?
- practice A student may travel from town A to town B by one of 3 different buses or one of 2 different trains, not both in the same trip. In how many ways can the trip be made?
Answers
- $5 \times 4 \times 3 = 60$
- $3+2=5$
- practice Evaluate $8!/6!$.
- practice How many ways can a chairperson and a treasurer, two distinct named roles, be chosen in order from 7 candidates, with no one holding both posts?
Answers
- $8 \times 7 = 56$
- $42$
- practice How many 4-digit codes can be formed from the digits 0-9 if digits may repeat?
- practice How many 3-letter strings can be formed from the 26 letters of the alphabet if letters may repeat?
- practice How many distinct arrangements does the word “STATISTICS” have?
- practice How many distinct arrangements does the word “APPLE” have?
Answers
- $10^4 = 10000$
- $26^3 = 17576$
- $10!/(3! \times 3! \times 2!) = 50400$
- $60$
- practice How many 4-person committees can be formed from 9 people?
- practice If $C(n,2) = 21$, find $n$.
- practice Use the symmetry identity to evaluate $C(12,10)$ without expanding $12!$ directly.
Answers
- $C(9,4) = 126$
- $7$
- $C(12,10) = C(12,2) = 66$
- practice A cricket team of 11 is to be chosen from 15 players. In how many ways can this be done?
- practice In how many ways can the letters of the word “BANANA” be arranged?
- practice A committee needs a president and a secretary, two distinct named roles, chosen from 6 members, with no one holding both roles. Which count applies?
Answers
- $C(15,11) = C(15,4) = 1365$
- $6!/(3! \times 2!) = 60$
- $P(6,2)$
Chapter-end problems
- board-easy A person owns 5 shirts and 3 ties. In how many ways can one shirt and one tie be worn together?
- board-easy A student may choose one fruit from 4 apples or 3 mangoes. In how many ways?
- board-easy Evaluate $5!$.
- board-easy Evaluate $7!/5!$.
- board-easy Find $P(6,2)$, the number of ways to fill 2 ordered posts from 6 people.
- board-easy A flag has 3 stripes, top, middle and bottom, each a different colour chosen from 5 available colours. How many flags are possible?
- board-easy How many 3-letter codes (repetition allowed) can be formed from 4 letters?
- board-easy In how many ways can the letters of the word LEVEL be arranged?
- board-easy Find $C(6,2)$, the number of 2-person selections from 6 people.
- board-easy Which of these equals $C(10,8)$?
- board-standard How many 4-digit numbers can be formed from the digits 1–9, no digit repeated?
Answers
- $15$
- $7$
- $120$
- $42$
- $30$
- $60$
- $64$
- $30$
- $15$
- $45$
- $3024$
- board-standard How many 4-digit numbers greater than 5000 can be formed from $1,2,3,5,7$, no digit repeated?
- board-standard In how many ways can 5 different books be arranged in a row on a shelf?
- board-standard 3 boys and 2 girls sit in a row with the 2 girls always together. In how many ways?
- board-standard In how many ways can the letters of the word APPLE be arranged?
- board-standard In how many ways can a committee of 4 be chosen from 10 people?
- board-standard A cricket team of 11 is chosen from 15 players, with 2 particular players always included. In how many ways?
- board-standard How many diagonals does a hexagon (6 sides) have?
- board-standard Using Pascal’s rule, find $C(7,2)$ from $C(6,2)$ and $C(6,1)$.
- board-standard In how many ways can the letters of the word MISSISSIPPI be arranged?
- board-standard How many 3-digit even numbers can be formed from digits 1–6, no digit repeated?
- board-standard In how many ways can a president, secretary and treasurer be chosen from 8 candidates?
- JEE In how many ways can the letters of the word ARRANGE be arranged?
- JEE From 5 men and 6 women, a committee of 5 is formed with at least 3 women. In how many ways?
- JEE How many 5-digit numbers divisible by 5 can be formed from digits 1–9, no digit repeated?
- JEE 10 people sit in a row with 4 particular people always together. In how many ways?
- JEE How many diagonals does a polygon with 12 sides have?
- JEE In how many ways can 12 different books be split between 2 named students, 6 each?
- JEE A test has 10 questions; a student must answer exactly 8, with questions 1 and 2 compulsory. In how many ways can the other 6 be chosen?
- JEE Find $n$ if $P(n,4) = 20 \times P(n,2)$.
Answers
- $48$
- $120$
- $48$
- $60$
- $210$
- $715$
- $9$
- $21$
- $34650$
- $60$
- $336$
- $1260$
- $281$
- $1680$
- $120960$
- $54$
- $924$
- $28$
- $n=7$
JEE-application problems
- A game show gives gold, silver and bronze rankings to 3 of 8 finalists. In how many ways can this be done?
Check your answer
- In how many ways can a class of 10 elect a president and a vice-president?
Check your answer
- In how many ways can the top 5 finishers (1st through 5th) be ranked among 9 runners?
Check your answer
- A cricket board fills 4 distinct roles (captain, vice-captain, wicketkeeper, all-rounder) from 7 shortlisted players. In how many ways?
Check your answer
- In how many ways can a jury of 4 be selected from 12 candidates?
Check your answer
- A librarian selects 3 books to donate from a shelf of 9. In how many ways?
Check your answer
- In how many ways can a debate team of 5 be picked from 15 students?
Check your answer
- In how many ways can a student choose 6 questions to answer from a paper of 10?
Check your answer
- A 4-digit PIN uses digits 0–9, with repetition allowed. How many PINs are possible?
Check your answer
- A 3-symbol code is formed from 5 symbols, with repetition allowed. How many codes are possible?
Check your answer
- In how many ways can the letters of BANANA be arranged?
Check your answer
- In how many ways can the letters of STATISTICS be arranged?
Check your answer
- In how many ways can the letters of COMMITTEE be arranged?
Check your answer
- How many diagonals does a 9-sided polygon have?
Check your answer
- Given $C(14,3) = 364$, find $C(14,11)$ without recomputing the factorial.
Check your answer
- A student picks one elective from 5 arts, 4 science or 3 commerce subjects. In how many ways?
Check your answer
- From 6 men and 5 women, a committee of 4 is formed with at least 2 women. In how many ways?
Check your answer
- Evaluate $8!/(5! \times 3!)$.
Check your answer
- Find $n$ if $P(n,2) = 110$.
Check your answer
- A team of 5 is chosen from 12 players with 3 particular players always included. In how many ways?
Check your answer