Chapter 6 โ Permutations and Combinations
How many PINs, batting orders, committees or lottery tickets are there? Counting without listing โ by multiplying stages, arranging with ${}^nP_r$ and selecting with ${}^nC_r$.
More than two thousand years ago, the Indian scholar Pingala studied the rhythms of Sanskrit poetry, built from short and long syllables, and asked how many different rhythm patterns a line of a given length could have. A few centuries later the medical text of Sushruta counted the ways of mixing the six basic tastes โ sweet, sour, salty, pungent, bitter and astringent โ and found $63$ combinations. In the ninth century Mahฤvฤซra wrote down a general rule for the number of ways of choosing $r$ things from $n$, and in the twelfth century Bhฤskara II devoted a chapter of his Lฤซlฤvatฤซ to arrangements of digits. Counting, it turns out, is an old and very Indian branch of mathematics.
It is also a very modern one. Every time you set a UPI PIN, a password or an OTP, its security rests on the number of possible codes being too large to try them all. Vehicle number plates, mobile numbers and transaction IDs are designed by counting; IPL selectors, quiz-team captains and lottery designers all face the same two questions: how many ways can things be arranged, and how many ways can things be chosen? In this chapter you will learn to answer both without ever writing out the list โ first with the fundamental principle of counting, then with permutations ${}^nP_r$ for arrangements, and finally with combinations ${}^nC_r$ for selections. These numbers are the foundation of the binomial theorem in Chapter 7 and of probability in Chapter 14.
- use the fundamental principle of counting and the addition principle, with tree diagrams and slots, to count codes, numbers, routes and outfits โ including "at least one" counts by subtraction;
- work with factorial notation, prove ${}^nP_r=\dfrac{n!}{(n-r)!}$, and count arrangements with and without repetition;
- count arrangements of objects that are not all different, such as the letters of a word with repeated letters, and handle "together" and "never together" conditions;
- prove ${}^nC_r=\dfrac{n!}{r!\,(n-r)!}$ and the properties ${}^nC_r={}^nC_{n-r}$ and ${}^nC_r+{}^nC_{r-1}={}^{n+1}C_r$;
- decide whether order matters, and solve mixed problems that select first and then arrange โ committees, teams, words and geometric counts.
Sections in this chapter
The Fundamental Principle of Counting
Tree diagrams and slots; stages multiply, separate cases add; codes, PINs, numbers with conditions, routes and "at least one" by subtraction.
Permutations
Factorials, the formula for ${}^nP_r$, arrangements with repetition, objects not all different, and the block and gap methods.
Combinations
Selections without order, the formula for ${}^nC_r$, its symmetry and addition rule, and mixed select-then-arrange problems.