Counting Principles, Permutations, and Combinations

Learning goals

  • Multiply stage counts that stay fixed no matter the earlier choices, or add across non-overlapping cases
  • Ask whether order matters and whether repeats are allowed before choosing a formula
  • Compute P(n,k)P(n,k) as a product of exactly kk factors
  • Divide by k!k! to forget the order, giving (nk)\dbinom{n}{k}
  • Correct for repeated objects by dividing out their type factorials, to count arrangements like MISSISSIPPI
  • Count the unwanted and subtract, for at least one

The multiplication principle

Start with a small case. A diner offers 44 soups and 33 sandwiches, and a lunch is one soup with one sandwich. Pick a soup any of 44 ways. Whichever one you pick, all 33 sandwiches are still on offer, so that choice leads to 33 lunches, and the same is true for every soup. Four soups, each starting 33 lunches of its own, and no lunch started twice, gives

4×3=12 lunches.4 \times 3 = 12 \text{ lunches}.

Now add a third stage, 22 drinks. Whichever soup and sandwich you already picked, both drinks are still on offer, so each of the 1212 soup-and-sandwich combinations leads to 22 full lunches. The same move that turned 44 into 4×34 \times 3 now turns 1212 into 12×2=2412 \times 2 = 24, because the number of drinks on offer never depends on which soup or sandwich came before it. Add a fourth stage and the same move repeats again. That repeated stacking, one stage at a time, is the whole idea behind counting by stages. State it precisely enough to use in harder cases, because the precision is what lets it survive when a careless version fails.

The multiplication principle. Suppose each object you want to count is built by a sequence of kk decisions. Suppose decision ii can be made in nin_i ways no matter how the earlier decisions came out. Suppose finally that different sequences of decisions build different objects, and that every object is built by exactly one sequence. Then the number of objects is

n1×n2×⋯×nk.n_1 \times n_2 \times \cdots \times n_k.

Read the hypothesis carefully, because the whole lesson leans on it. It says the number of options at each stage must not depend on the earlier choices. It does not say the options themselves must stay the same. When you seat people in chairs, which people remain for the second chair depends entirely on who took the first. But how many remain does not change with who took the first: it is always one fewer. That distinction is what makes permutations legal, and it is why “the choices are independent” undersells the rule: the choices themselves can depend on the past, as long as their number does not.

One companion rule handles problems that break into cases instead of stages. If the objects you want split into groups that overlap nowhere and leave nothing out, then the total is the sum of the group counts. That is the addition principle. A sequence of decisions multiplies (“this and then that”), while a split into separate cases adds (“either this kind or that kind”). Splitting a 22-digit number’s tens digit into ”11 through 44” or ”55 through 99” is one addition-principle split; if the cases instead shared a value, such as “even” and “under 66” (both true of 22), simply adding their counts would count that shared value twice.

Check your understanding

A school offers 55 elective classes in the morning session and 66 elective classes in the afternoon session, and no elective meets in both sessions. A student picks exactly one elective. How many electives can the student choose from?

Answer choices

The simplest use of the multiplication principle is the one where nothing changes between stages. Suppose you fill kk slots, and each slot freely takes any of nn values, with repetition allowed. Then every stage offers the same nn options, and the product collapses to a power:

n×n×⋯×n⏟k slots=nk.\underbrace{n \times n \times \cdots \times n}_{k \text{ slots}} = n^k.

A four-digit PIN has 104=10,00010^4 = 10{,}000 settings, and a string of kk letters drawn from a 2626-letter alphabet has 26k26^k possibilities. In both cases a digit or a letter can be reused as often as you like.

Permutations, or filling slots without repetition

Now forbid repetition. An arrangement, or permutation, of kk objects chosen from nn distinct objects is a way of filling kk ordered slots using each object at most once. Write P(n,k)P(n, k) for how many there are.

Fill the slots left to right. The first slot accepts any of the nn objects. Whatever you put there is gone, so the second slot accepts any of the remaining n−1n - 1. The third accepts n−2n - 2, and so on. The counts shrink by one at every step, and the multiplication principle applies because the number remaining is the same no matter which particular objects were used up. By the time you reach the kk-th slot you have already placed k−1k - 1 objects, so it accepts n−(k−1)=n−k+1n - (k-1) = n - k + 1 of them:

P(n,k)=n(n−1)(n−2)⋯(n−k+1).P(n, k) = n(n-1)(n-2)\cdots(n-k+1).
The shrinking slot count for a permutationOrdered slots holding n, n minus 1, n minus 2, down to n minus k plus 1 choices, multiplied together to give P(n, k) with exactly k factors.slot 1slot 2slot 3slot knn - 1n - 2n - k + 1×××…×each object placed is used up, so every slot has one choice fewerk factors in all, ending at n - k + 1
Filling k ordered slots from n distinct objects. Each object placed is used up, so the counts drop by one. There are exactly k factors, and the last is n - k + 1 because k - 1 objects are already gone by the time the final slot is filled.

Count the factors, since this is where the formula is usually mangled. There is one factor per slot, so there are kk of them, and they run n,n−1,…n, n-1, \ldots down to n−k+1n-k+1. For P(9,4)P(9, 4) that is four factors, 9×8×7×69 \times 8 \times 7 \times 6, stopping at 9−4+1=69 - 4 + 1 = 6 and not at 55.

What the factorial counts. Set k=nk = n and you are arranging all nn objects, using every one of them:

P(n,n)=n(n−1)(n−2)⋯1=n!.P(n, n) = n(n-1)(n-2)\cdots 1 = n!.

You met n!n! in the binomial theorem lesson as a piece of notation. This is what it counts: the number of ways to put nn distinct objects in a row. Five books have 5!=1205! = 120 orders, and ten books have 10!=3,628,80010! = 3{,}628{,}800 of them.

The closed form. The product n(n−1)⋯(n−k+1)n(n-1)\cdots(n-k+1) is the top of a factorial with its tail chopped off, so put the tail back by multiplying and dividing by (n−k)!(n-k)!:

P(n,k)=n(n−1)⋯(n−k+1)×(n−k)(n−k−1)⋯1(n−k)(n−k−1)⋯1=n!(n−k)!.P(n, k) = \frac{n(n-1)\cdots(n-k+1) \times (n-k)(n-k-1)\cdots 1}{(n-k)(n-k-1)\cdots 1} = \frac{n!}{(n-k)!}.

The numerator is now the full factorial n!n!, and the denominator cancels precisely the factors you did not want. So

P(n,k)=n!(n−k)!.P(n, k) = \frac{n!}{(n-k)!}.

Why 0!=10! = 1 is forced. The cancellation above needs the tail (n−k)(n−k−1)⋯1(n-k)(n-k-1)\cdots 1 to be an honest product of positive whole numbers, so it only works for k<nk < n. The case k=nk = n, arranging every object, is the one it misses. The slot count there is not in doubt: P(n,n)=n!P(n,n) = n!. If one closed form is to cover that case too, it must return n!n! there as well, and the closed form reads n!/(n−n)!=n!/0!n!/(n-n)! = n!/0! at k=nk = n. Setting the two equal, n!=n!/0!n! = n!/0!, leaves exactly one possible value:

0!=1.0! = 1.

The value is not picked for convenience: it is the only one under which the formula and the slot count agree. It also matches what a factorial means. Since n!n! counts the arrangements of nn objects, 0!0! should count the arrangements of 00 objects, and there is exactly one, the empty arrangement in which you place nothing. (The binomial theorem lesson used 0!=10! = 1 for the same reason, to keep its own formula correct at the edges.)

Worked example 1 Count the license plates

A plate shows three letters followed by three digits. The letters must all be different, but the digits may repeat. How many plates are possible?

Treat the six characters as six stages and watch which counts shrink. The letters cannot repeat, so the letter stages offer 2626, then 2525, then 2424 options. The digits may repeat, so every digit stage keeps all 1010 options.

26×25×24×10×10×10.26 \times 25 \times 24 \times 10 \times 10 \times 10.

The letters contribute P(26,3)=26×25×24=15,600P(26, 3) = 26 \times 25 \times 24 = 15{,}600 and the digits contribute 103=1,00010^3 = 1{,}000, so

15,600×1,000=15,600,000.15{,}600 \times 1{,}000 = 15{,}600{,}000.

There are 15,600,00015{,}600{,}000 plates. The single question that decided every stage count was whether a character may be reused. Shrink the count when it may not, hold it fixed when it may.

Worked example 2 Line up 4 of 9 books

Nine different books sit in a box, and four of them will stand in a row on a shelf. How many different shelves are possible?

The shelf is ordered, since swapping two books produces a visibly different shelf, and no book can appear twice. That is a permutation of 44 objects chosen from 99, so fill four slots with shrinking counts:

P(9,4)=9×8×7×6=3,024.P(9, 4) = 9 \times 8 \times 7 \times 6 = 3{,}024.

The closed form gives the same number, and it is worth seeing the cancellation once:

P(9,4)=9!(9−4)!=9!5!=9×8×7×6×5!5!=3,024.P(9, 4) = \frac{9!}{(9-4)!} = \frac{9!}{5!} = \frac{9 \times 8 \times 7 \times 6 \times 5!}{5!} = 3{,}024.

In practice never expand 9!9! in full. Cancel 5!5! first and only four factors survive, which is the shrinking product you started with.

Check your understanding

A club of 1010 members elects a president, a secretary, and a treasurer, and no member may hold two offices. In how many ways can the three offices be filled?

Answer choices

Combinations, or forgetting the order

A permutation cares about order. Very often you do not. A committee of three is the same committee however you list its members, and a hand of cards is the same hand however it was dealt. A set of three chosen factors is the same set however you name them. What you want to count then is not an ordered list but a set.

Notation. For 0≤k≤n0 \le k \le n, the symbol (nk)\binom{n}{k}, read ”nn choose kk”, is the number of kk-element subsets of an nn-element set. This is not a new symbol. In the binomial theorem lesson it counted the ways to choose which kk of the nn factors of (x+y)n(x+y)^n donate their yy. And a choice of factors is nothing more than a set of kk factors picked out of nn. Same act, same count, same number. What is new here is a way to compute it directly.

The tool that computes it directly is the mirror image of the multiplication principle: start from a count you already know, then divide away the overcounting.

Start from a small case. Choose 33 letters from {A,B,C,D}\{A, B, C, D\}, filling 33 ordered slots without repeats: there are P(4,3)=4×3×2=24P(4,3) = 4 \times 3 \times 2 = 24 ordered lists. But the six lists ABC, ACB, BAC, BCA, CAB, and CBA all name the same set, {A,B,C}\{A, B, C\}: they differ only in the order the letters were written down. The same is true of every 33-letter set drawn from these four letters, so the 2424 ordered lists split evenly into groups of 66.

Twenty-four ordered lists collapse into four setsEach 3-element subset of a 4-element set appears in 6 orderings, so 24 ordered lists divided by 6 gives 4 subsets.P(4, 3) = 24 ordered lists, grouped by the set of letters they use{A, B, C}{A, B, D}{A, C, D}{B, C, D}ABCACBBACBCACABCBAABDADBBADBDADABDBAACDADCCADCDADACDCABCDBDCCBDCDBDBCDCB6 orders6 orders6 orders6 ordersevery set counted 3! = 6 times, so 24 / 6 = 4 sets
The 24 ordered lists of 3 letters chosen from A, B, C, D, sorted by which set of letters they use. Every set appears exactly 3! = 6 times, once per ordering, so the number of sets is 24 divided by 6, which is 4.
(43)=246=4.\binom{4}{3} = \frac{24}{6} = 4.

That is the pattern behind every combination count: build the ordered version first, since you already know how to count that, then divide by however many orders share one unordered result.

The division principle. Suppose a procedure produces NN outputs in total, and suppose every output is produced by exactly one object. Suppose also that every object you actually want to count is produced exactly dd times, with the same dd for every object. Then the number of objects is N/dN / d.

Why an even overcount can simply be divided away#

Sort the NN outputs into piles, putting two outputs in the same pile exactly when they came from the same object. Every output lands in exactly one pile, since it came from exactly one object, so the piles overlap nowhere and together hold all NN outputs.

By hypothesis each object is produced exactly dd times, so each pile holds exactly dd outputs. Let MM be the number of piles, which is the number of objects. Counting the outputs pile by pile gives MM groups of dd, so N=M×dN = M \times d, and therefore M=N/dM = N / d.

The requirement that dd be the same for every object is the whole content of the rule. If some objects were produced twice and others three times, the piles would be uneven and no single division could repair the count.

Now count (nk)\binom{n}{k} in general, the same way the 44-letter example did it: count the ordered lists two different ways.

The direct count of (nk)=n!k! (n−k)!\binom{n}{k} = \dfrac{n!}{k!\,(n-k)!}#

Fix nn and kk with 0≤k≤n0 \le k \le n, and count the ordered lists of kk distinct objects drawn from the nn available, twice.

First count: fill the slots. A list is kk ordered slots filled without repetition, so by the shrinking slot argument there are P(n,k)=n!/(n−k)!P(n, k) = n!/(n-k)! lists in all.

Second count: choose, then order. Build the same list in two stages instead. First choose the set of kk objects that will appear in it, which by definition can be done in (nk)\binom{n}{k} ways. Then choose the order in which to write that set out, which is an arrangement of kk distinct objects in kk slots, so it can be done in P(k,k)=k!P(k, k) = k! ways.

The multiplication principle applies to these two stages, because the second stage offers k!k! orders no matter which set the first stage produced. And the two stages build every list exactly once. Each list determines its own set (its entries) and its own order (how they are written), so no list is built twice and none is missed. Hence the number of lists is also (nk)×k!\binom{n}{k} \times k!.

Equate the two counts. The same lists were counted both times, so

(nk)×k!=n!(n−k)!,\binom{n}{k} \times k! = \frac{n!}{(n-k)!},

and dividing by k!k! isolates the number we wanted:

(nk)=P(n,k)k!=n!k! (n−k)!.\binom{n}{k} = \frac{P(n,k)}{k!} = \frac{n!}{k!\,(n-k)!}.

Look at what the division did. Every set of kk objects was built k!k! times, once for each order in which its members could be listed. Dividing by k!k! collapses those k!k! lists back into the single set they all describe. Dividing by k!k! is the act of forgetting the order. That sentence is the difference between a permutation and a combination, and there is nothing else to it. It is exactly what the 44-letter example above did by hand: 2424 ordered lists, divided by the 66 orders each set was written in, giving 44 sets.

Two facts drop out for free. Choosing which kk objects to take is the same act as choosing which n−kn - k objects to leave, so (nk)=(nn−k)\binom{n}{k} = \binom{n}{n-k}. The formula agrees because swapping kk with n−kn-k just swaps the two factorials in the denominator. And at the edges, (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1, since there is one way to take nothing and one way to take everything. The formula produces those 11‘s only because 0!=10! = 1, which is the same forcing you saw a moment ago.

Here is the whole scheme on one page. Suppose you make kk picks from nn objects.

The kk picks areRepetitionHow many ways
orderedallowednkn^k
orderednot allowedP(n,k)=n!(n−k)!P(n,k) = \dfrac{n!}{(n-k)!}
unorderednot allowed(nk)=n!k! (n−k)!\dbinom{n}{k} = \dfrac{n!}{k!\,(n-k)!}

The missing fourth row, unordered picks with repetition allowed, needs a tool this lesson does not build, so leave it for a later course. The three rows above answer nearly everything. The two questions you must answer before choosing a row are whether rearranging your picks changes the outcome, and whether an object may be used twice. Neither question settles the row by itself. The first two rows are both ordered, so the order question alone leaves you stuck between them, and only the repetition question tells them apart.

Worked example 3 Choose a delegation of 5 from a club of 12

A club of 1212 members sends 55 delegates to a conference. The delegates have no titles and no ranks, so the delegation is just a set of five people. How many delegations are possible?

Rearranging the same five people gives the same delegation, so order does not matter and this is (125)\binom{12}{5}. Use the closed form, canceling 7!7! against the tail of 12!12! before multiplying anything:

(125)=12!5! 7!=12×11×10×9×85×4×3×2×1.\binom{12}{5} = \frac{12!}{5!\,7!} = \frac{12 \times 11 \times 10 \times 9 \times 8}{5 \times 4 \times 3 \times 2 \times 1}.

Five factors on top counting down from 1212, and 5!5! underneath. The numerator is 95,04095{,}040 and the denominator is 120120:

(125)=95,040120=792.\binom{12}{5} = \frac{95{,}040}{120} = 792.

There are 792792 delegations. Had the five delegates instead been given five distinct jobs, the answer would have been P(12,5)=95,040P(12,5) = 95{,}040, which is exactly 120120 times larger. That factor of 120120 is one for each of the 5!5! ways to hand out the jobs to a fixed set of five people.

Check your understanding

The same club of 1010 members instead sends a committee of 33 members, with no offices and no ranks. How many committees are possible?

Answer choices

Worked example 4 Build a committee with a required mix

A department has 77 women and 55 men, and it must form a committee of 33 women and 22 men. How many committees are possible?

Break the build into two stages, choosing the women and then the men. Neither group is ordered, so each stage is a combination:

(73)=7×6×53×2×1=35,(52)=5×42×1=10.\binom{7}{3} = \frac{7 \times 6 \times 5}{3 \times 2 \times 1} = 35, \qquad \binom{5}{2} = \frac{5 \times 4}{2 \times 1} = 10.

The multiplication principle now applies, because whichever three women are chosen, there are still 1010 ways to choose the men:

35×10=350.35 \times 10 = 350.

There are 350350 committees. Notice that the two stages multiply even though each stage was itself computed by a division. Combinations are ordinary numbers once you have them, and they slot into the multiplication principle like any other stage count.

Arranging objects that are not all distinct

The permutation formula assumed every object was distinguishable. Real problems break that assumption constantly, and the repair is the division principle again.

How many distinguishable arrangements does the word BANANA have? If the six letters were all different the answer would be 6!=7206! = 720, but they are not. There are three A’s and two N’s, and swapping two A’s produces the identical string. So 720720 is an overcount, and the question is by how much.

Arrangements of nn objects with repeats#

Suppose nn objects come in rr types, with n1n_1 copies of the first type, n2n_2 of the second, and so on up to nrn_r, where n1+n2+⋯+nr=nn_1 + n_2 + \cdots + n_r = n. Copies of the same type are identical. We count the distinguishable arrangements.

Tag the copies to make them temporarily distinct: call the three A’s of BANANA A1,A2,A3A_1, A_2, A_3. All nn tagged objects are now different, so they have n!n! arrangements.

Group those n!n! tagged arrangements by the untagged word they produce. Two tagged arrangements produce the same word exactly when they place the same type in the same positions. Two arrangements that produce the same word differ only in how the tags are distributed among the positions of each type. For a fixed word, the tags of type 11 can be scattered over its n1n_1 positions in n1!n_1! ways. The tags of type 22 can be scattered over the word’s n2n_2 positions in n2!n_2! ways, and so on. Placing one type’s tags does not change how many ways the next type’s tags can be placed, so by the multiplication principle each word arises from exactly

n1!×n2!×⋯×nr!n_1! \times n_2! \times \cdots \times n_r!

tagged arrangements. That number is the same for every word, since it depends only on the type counts.

The division principle now applies with N=n!N = n! and d=n1! n2!⋯nr!d = n_1!\,n_2!\cdots n_r!, so the number of distinguishable arrangements is

n!n1! n2! ⋯ nr!.\frac{n!}{n_1!\,n_2!\,\cdots\,n_r!}.

For BANANA, n=6n = 6 with three A’s, two N’s, and one B:

6!3! 2! 1!=7206×2×1=72012=60.\frac{6!}{3!\,2!\,1!} = \frac{720}{6 \times 2 \times 1} = \frac{720}{12} = 60.

Sixty arrangements, not 720720. Divide by the factorials of the repeat counts, not by the repeat counts themselves: the three A’s contribute 3!=63! = 6, not 33.

This formula quietly contains the binomial coefficient. Take just two types, kk objects of one kind and n−kn - k of the other, say kk letters Y and n−kn-k letters X. The count of arrangements is

n!k! (n−k)!=(nk),\frac{n!}{k!\,(n-k)!} = \binom{n}{k},

which is no coincidence at all. Arranging kk Y’s and n−kn-k X’s in a row is precisely choosing which kk of the nn positions hold a Y. Back in the binomial theorem those positions were the factors of (x+y)n(x+y)^n that donate their yy. The same number keeps answering the same question in different clothes.

Worked example 5 Arrange the letters of MISSISSIPPI

The word MISSISSIPPI has 1111 letters. How many distinguishable arrangements are there?

Count the letters by type first, and check that the counts add to 1111:

M×1,I×4,S×4,P×2,1+4+4+2=11.\text{M} \times 1, \qquad \text{I} \times 4, \qquad \text{S} \times 4, \qquad \text{P} \times 2, \qquad 1 + 4 + 4 + 2 = 11.

Had all 1111 letters been different there would be 11!11! arrangements. Each actual word is produced 1!×4!×4!×2!1! \times 4! \times 4! \times 2! times by the tagged letters, so divide:

11!1! 4! 4! 2!=39,916,8001×24×24×2=39,916,8001,152.\frac{11!}{1!\,4!\,4!\,2!} = \frac{39{,}916{,}800}{1 \times 24 \times 24 \times 2} = \frac{39{,}916{,}800}{1{,}152}.

Carry out the division:

39,916,8001,152=34,650.\frac{39{,}916{,}800}{1{,}152} = 34{,}650.

There are 34,65034{,}650 arrangements. The 1!1! for the single M is harmless, since 1!=11! = 1, but writing it down is a cheap way to make sure the type counts really do add up to 1111.

Check your understanding

How many distinguishable arrangements are there of the letters in the word LETTER?

Answer choices

Complementary counting

Some sets are far easier to count by counting what you do not want. If every object either has a property or fails to have it, then those two cases overlap nowhere and cover everything. So the addition principle says the two counts add to the total. Rearranged, that is complementary counting:

(objects with the property)=(all objects)−(objects without it).(\text{objects with the property}) = (\text{all objects}) - (\text{objects without it}).

The flagship case is at least one. The opposite of “at least one” is “none”. And “none” is usually a single clean count, while “at least one” splits into a pile of cases (exactly one, exactly two, exactly three, and so on). Counting the total and subtracting the “none” case replaces all of that work with one subtraction.

It is also a guard against a specific and very common error. Faced with “at least one woman on the committee”, the tempting move is to appoint one woman first, then fill the rest of the committee freely. That method builds a committee with two women twice, once for each woman it could have appointed first. The division principle cannot repair the damage, because committees with three women are built three times and the overcount is uneven. The next example shows the two answers side by side.

Worked example 6 At least one woman on the committee

A committee of 44 is chosen from 66 men and 55 women. How many committees contain at least one woman?

The group has 1111 people in total, and a committee is an unordered set of 44, so there are

(114)=11×10×9×84×3×2×1=7,92024=330\binom{11}{4} = \frac{11 \times 10 \times 9 \times 8}{4 \times 3 \times 2 \times 1} = \frac{7{,}920}{24} = 330

committees in all. The committees without a woman are made entirely of the 66 men:

(64)=6×5×4×34×3×2×1=15.\binom{6}{4} = \frac{6 \times 5 \times 4 \times 3}{4 \times 3 \times 2 \times 1} = 15.

Every committee either has at least one woman or has none, never both, so subtract:

330−15=315.330 - 15 = 315.

There are 315315 committees with at least one woman.

Now watch the tempting method fail. Appoint one of the 55 women, then fill the remaining 33 seats from the other 1010 people, giving 5×(103)=5×120=6005 \times \binom{10}{3} = 5 \times 120 = 600. That is nearly double the truth, because a committee holding the women Ana and Bea is produced twice. That committee is produced once by appointing Ana first and once by appointing Bea first, while a committee holding three women is produced three times. The overcount is uneven, so no single division fixes it. Subtracting the complement never runs into this problem.

Check your understanding

A coin is flipped 66 times, giving 26=642^6 = 64 possible sequences of heads and tails. In how many of them does at least one head appear?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

Go deeper (optional)

You can skip this and keep going. Read it if you want to know more.

Why a sequence of fixed-count decisions multiplies, proved by induction on the number of stages

The soup, sandwich, and drink example showed the pattern by hand for three stages. This is the same argument made once and for all, for any number of stages kk.

Why a sequence of fixed-count decisions multiplies#

Add the stages one at a time. With a single decision the count is n1n_1, which is the claim for k=1k = 1.

Now suppose the first k−1k-1 decisions produce exactly N=n1n2⋯nk−1N = n_1 n_2 \cdots n_{k-1} different partial objects, and bring in the last decision. Each of those NN partial objects can be finished in exactly nkn_k ways, since that is the hypothesis. The hypothesis says the number of options at the last stage does not depend on what came before it.

Those completions are all different, and for two separate reasons. Two completions of the same partial object differ in the final decision, so they are different. Two completions of different partial objects already differed before the final decision was made, so they are different too. And nothing is missed: any finished object comes from exactly one partial object, namely its own first k−1k-1 decisions, followed by one last decision.

So the finished objects fall into NN groups of nkn_k, one group per partial object, and the total is N×nk=n1n2⋯nkN \times n_k = n_1 n_2 \cdots n_k. Since each new stage multiplies the running total by its own option count, the product formula holds for every kk.

A bit of history (optional)

European gamblers had mostly solved each game by its own trick, one problem at a time, though the Italian mathematician Gerolamo Cardano had already worked out odds for several dice games a century earlier, in a manuscript that stayed unpublished until 1663. In 1654 Blaise Pascal took the idea further: he worked out general properties of (nk)\binom{n}{k} and applied them to fairly splitting a gambler’s interrupted stake, among other problems. His findings became the Treatise on the Arithmetical Triangle, composed and substantially printed in 1654 but not published until 1665, three years after his death.

Gottfried Leibniz, a young German lawyer, gave the field its name at twenty. His 1666 essay De Arte Combinatoria took the art of combinations far beyond dice. He wanted to break every idea into parts and recombine them to reach all possible truths. The essay promised far more than it delivered. The phrase survived anyway, and combinatorics still carries it.

A broader theory came from a Swiss professor named Jacob Bernoulli. His Ars Conjectandi was printed in 1713, eight years after he died. Its second part walks through permutations and combinations in general, proving the rules rather than collecting them case by case.

Ordinary language never caught up. A combination lock will not open unless you enter its numbers in the one exact order set for it. By the words of this lesson that is not a combination at all: it is an ordered code of length kk over nn symbols, counted by nkn^k if a symbol may repeat in the code and by P(n,k)P(n,k) if it may not, but never by (nk)\binom{n}{k}. The everyday name has stuck regardless.