Counting, Binomial Coefficients and Sequences in Depth

Permutations and combinations, the binomial theorem and sequences and series were each taught in this course at the level of the main formulas. The lines the syllabus names and that were left out are the fundamental principle of counting as a method, derangements, the properties of binomial coefficients, the insertion of arithmetic and geometric means and the sums of squares and cubes. This chapter teaches them, with every number recomputed.
Overview

1. The Fundamental Principle and the Counting Toolkit

1 min read · 1 part

Every counting problem is built from two rules. The addition principle: if one task can be done in m ways or another in n ways, and they cannot both happen, the total is m + n. The multiplication principle (the fundamental principle of counting): if one task can be done in m ways and then another in n ways, the total is m × n. Permutations and combinations are shortcuts for the two commonest patterns. Arrangements of n distinct objects in a row: n!; around a circle: (n − 1)! (for six people, 120). When some objects are alike the count is divided by the factorials of the repeats: the letters of MISSISSIPPI can be arranged in 11!/(4! 4! 2!) = 34,650 ways.

Two special counts are named in the syllabus. A derangement is a permutation in which no object is in its own place. Their number is Dₙ = n! [1 − 1/1! + 1/2! − … + (−1)ⁿ/n!], giving D₁ = 0, D₂ = 1, D₃ = 2, D₄ = 9, D₅ = 44 and D₆ = 265; the classic use is four letters put into four addressed envelopes with none in the right one (9 ways of 24). The number of non-negative integer solutions of x + y + z = 10 is C(12, 2) = 66 (distributing identical objects into distinct boxes: C(n + r − 1, r − 1)), and of positive solutions C(9, 2) = 36.

The two rules behind every count
Addition principle
  • m ways or n ways
  • Cannot both happen
  • Total m + n
Multiplication principle
  • m ways and then n ways
  • One task after the other
  • Total m × n

Every counting problem is built from two rules. The addition principle: if one task can be done in m ways or another in n ways, and they cannot both happen, the total is m + n. The…

2. Properties of Binomial Coefficients

1 min read · 1 part
The identities and what they come from
IdentitySourceCheck, n = 10
C(n, 0) + C(n, 1) + … + C(n, n) = 2ⁿPut x = 1 in (1 + x)ⁿ1024
Sum of even-place = sum of odd-place = 2ⁿ⁻¹Put x = 1 and x = −1512 each
C(n, r) = C(n, n − r)Choosing r to take = choosing n − r to leaveC(10, 3) = C(10, 7) = 120
C(n, r) + C(n, r − 1) = C(n + 1, r)Pascal’s ruleC(10, 3) + C(10, 2) = C(11, 3) = 165
r·C(n, r) = n·C(n − 1, r − 1)Choose a team, then its captain3·C(10, 3) = 10·C(9, 2) = 360
Σ C(n, r)² = C(2n, n)Special case of VandermondeC(20, 10) = 184,756

The middle term of (1 + x)ⁿ is the coefficient with r = n/2 when n is even (C(10, 5) = 252, the greatest coefficient) and the two terms r = (n ± 1)/2 when n is odd. The general term of (a + b)ⁿ is Tr+1 = C(n, r) aⁿ⁻ʳ bʳ, and a term independent of x is found by setting the power of x to zero in that expression.

The middle term of (1 + x)ⁿ is the coefficient with r = n/2 when n is even (C(10, 5) = 252, the greatest coefficient) and the two terms r = (n ± 1)/2 when n is odd. The general term of (a +…

3. Inserting Means

1 min read · 1 part

To insert n arithmetic means between a and b, the sequence a, A₁, …, Aₙ, b has n + 2 terms and common difference d = (b − a)/(n + 1). Three means between 4 and 20 give d = 4 and 8, 12, 16; their sum is n(a + b)/2 = 36. To insert n geometric means the ratio is r = (b/a)^(1/(n + 1)): two means between 3 and 24 give r³ = 8, r = 2 and the means 6 and 12, whose product G₁G₂ = 72 = ab. For any two positive numbers AM ≥ GM ≥ HM, with equality only when they are equal.

Inserting n means between a and b
Arithmetic means
  • d = (b − a)/(n + 1)
  • Three between 4 and 20: 8, 12, 16
  • Sum n(a + b)/2 = 36
Geometric means
  • r = (b/a)^(1/(n + 1))
  • Two between 3 and 24: 6, 12
  • Product G₁G₂ = 72 = ab
n means make n + 1 gaps.

To insert n arithmetic means between a and b, the sequence a, A₁, …, Aₙ, b has n + 2 terms and common difference d = (b − a)/(n + 1). Three means between 4 and 20 give d = 4 and 8, 12, 16…

4. Sums of Powers and the Arithmetico-Geometric Series

1 min read · 1 part

The three sums the syllabus lists are Σn = n(n + 1)/2, Σn² = n(n + 1)(2n + 1)/6 and Σn³ = [n(n + 1)/2]². For n = 10 they are 55, 385 and 3025 = 55², the last being the square of the first. The arithmetico-geometric series 1 + 2x + 3x² + … has sum 1/(1 − x)² for |x| < 1, so at x = 1/2 the sum is 4; it comes from differentiating the geometric series 1/(1 − x) term by term.

⚠️ Count terms before using the difference
The common trap is dividing by n instead of n + 1: inserting n means between a and b makes n + 1 gaps. Four AMs between 2 and 12 give d = 10/5 = 2, not 10/4.

The three sums the syllabus lists are Σn = n(n + 1)/2, Σn² = n(n + 1)(2n + 1)/6 and Σn³ = [n(n + 1)/2]². For n = 10 they are 55, 385 and 3025 = 55², the last being the square of the first.…

Worked Counting: Words, Circles, Distributions and Derangements

1 min read · 3 parts
Counting problems
ProblemWorkingResult
Arrangements of the letters of MISSISSIPPI11!/(4! 4! 2!)34 650
5 people around a circular table(5 − 1)!24
10 identical sweets into 3 children (any share)C(10 + 3 − 1, 3 − 1) = C(12, 2)66
Diagonals of a decagonC(10, 2) − 1035
Derangements of 4 objectsD₄ = 4!(1 − 1 + 1/2 − 1/6 + 1/24)9
⚠️ Identical or distinct, ordered or unordered
Decide first whether the objects are identical or distinct and whether the arrangement is a line or a circle: n distinct objects in a circle give (n − 1)!, and a necklace that can be turned over gives (n − 1)!/2. For sharing identical objects among distinct people the stars-and-bars count C(n + r − 1, r − 1) applies, but if each person must get at least one, first give one to each and share the rest: for 10 sweets and 3 children it becomes C(9, 2) = 36.
Decide first: distinct or identical?
What is being counted?
  • Distinct objects arranged
    • In a rown!
    • In a circle(n − 1)!
    • Necklace that can be turned over(n − 1)!/2
  • Identical objects to distinct people
    • Any shareC(n + r − 1, r − 1): 10 sweets, 3 children → 66
    • At least one eachGive one each first → C(9, 2) = 36

Binomial Coefficient Identities with Numbers

1 min read · 2 parts
Identities and their values
IdentityInstanceValue
Pascal: C(n, r) + C(n, r − 1) = C(n + 1, r)C(5, 2) + C(5, 1) = C(6, 2)10 + 5 = 15
r C(n, r) = n C(n − 1, r − 1)Σ r C(n, r) = n 2ⁿ⁻¹ for n = 44 × 8 = 32
Σ C(n, r)² = C(2n, n)n = 10184 756
Vandermonde: Σ C(m, r) C(n, k − r) = C(m + n, k)choose 3 from 5 men and 4 womenC(9, 3) = 84
⚠️ Expand by identity, not by brute force
The sum of the squares of the coefficients of (1 + x)ⁿ equals the coefficient of xⁿ in (1 + x)²ⁿ, which is C(2n, n); for n = 10 that is 184 756, a number nobody should compute by adding eleven squares. Counting the same committee two ways, by the total or split by gender, is the idea behind Vandermonde's identity and a good way to verify an answer.

Key takeaways

  • Addition applies to alternatives, multiplication to successive choices; circular arrangements are (n − 1)!; repeats divide by factorials.
  • Derangements: D₄ = 9, D₅ = 44; non-negative solutions of x₁ + … + x_r = n number C(n + r − 1, r − 1).
  • Binomial coefficients sum to 2ⁿ, even and odd places each to 2ⁿ⁻¹, and ΣC(n, r)² = C(2n, n); r·C(n, r) = n·C(n − 1, r − 1).
  • Inserting n means makes n + 1 gaps: d = (b − a)/(n + 1) and r = (b/a)^(1/(n + 1)).
  • Σn = n(n + 1)/2, Σn² = n(n + 1)(2n + 1)/6, Σn³ = (Σn)²; 1 + 2x + 3x² + … = 1/(1 − x)².
  • Circular arrangements give (n − 1)!; sharing n identical objects among r people gives C(n + r − 1, r − 1), or C(n − 1, r − 1) if each must receive at least one.
  • Σ C(n, r)² = C(2n, n) and Σ r C(n, r) = n 2ⁿ⁻¹; count the same selection two ways to check an identity.

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. In how many ways can 6 people sit around a circular table?

    1. 120
    2. 720
    3. 60
    4. 24
    Show answer

    Answer: A — 120

    Fixing one person removes the rotations: (6 − 1)! = 120. 720 is the count for a row.
  2. The number of derangements of 4 objects is:

    1. 9
    2. 6
    3. 12
    4. 11
    Show answer

    Answer: A — 9

    D₄ = 4!(1 − 1 + 1/2 − 1/6 + 1/24) = 9, checked by listing the 24 permutations. The other options are guesses; the number comes from the formula.
  3. The number of non-negative integer solutions of x + y + z = 10 is:

    1. 66
    2. 36
    3. 120
    4. 45
    Show answer

    Answer: A — 66

    C(10 + 3 − 1, 3 − 1) = C(12, 2) = 66. 36 is the count for positive solutions, C(9, 2).
Show the other 21 questions
  1. The sum C(10, 0) + C(10, 1) + … + C(10, 10) equals:

    1. 1024
    2. 512
    3. 100
    4. 2048
    Show answer

    Answer: A — 1024

    Putting x = 1 in (1 + x)¹⁰ gives 2¹⁰ = 1024. 512 is the sum over odd places only.
  2. The value of C(10, 0)² + C(10, 1)² + … + C(10, 10)² is:

    1. C(20, 10)
    2. 2²⁰
    3. C(10, 5)²
    4. 1024²
    Show answer

    Answer: A — C(20, 10)

    Σ C(n, r)² = C(2n, n) (Vandermonde with both sets of size n), which is 184,756. The sum of the squares is not the square of the sum.
  3. The greatest coefficient in the expansion of (1 + x)¹⁰ is:

    1. 252
    2. 210
    3. 120
    4. 126
    Show answer

    Answer: A — 252

    For even n the middle term has r = n/2 = 5, and C(10, 5) = 252. 210 is C(10, 4), 120 is C(10, 3).
  4. Three arithmetic means inserted between 4 and 20 are:

    1. 8, 12, 16
    2. 6, 12, 18
    3. 7, 12, 17
    4. 9, 12, 15
    Show answer

    Answer: A — 8, 12, 16

    Five terms in all, so d = (20 − 4)/4 = 4 and the means are 8, 12, 16. Dividing by 3 would give d = 16/3.
  5. Two geometric means inserted between 3 and 24 are:

    1. 6 and 12
    2. 9 and 15
    3. 8 and 16
    4. 12 and 18
    Show answer

    Answer: A — 6 and 12

    The ratio r satisfies 3r³ = 24, so r = 2 and the terms are 3, 6, 12, 24. The product of the two means is 72 = 3 × 24.
  6. The value of 1³ + 2³ + … + 10³ is:

    1. 3025
    2. 385
    3. 55
    4. 1000
    Show answer

    Answer: A — 3025

    Σn³ = [n(n + 1)/2]² = 55² = 3025. 385 is Σn² and 55 is Σn.
  7. The sum to infinity of 1 + 2x + 3x² + … at x = 1/2 is:

    1. 4
    2. 2
    3. 3
    4. 8
    Show answer

    Answer: A — 4

    The series sums to 1/(1 − x)² = 1/(1/2)² = 4. The plain geometric series 1/(1 − x) would give 2.
  8. The number of ways of distributing 10 identical sweets among 3 children, each getting at least one, is:

    1. 36
    2. 66
    3. 120
    4. 72
    Show answer

    Answer: A — 36

    Give one to each child, leaving 7 sweets to share freely: C(7 + 2, 2) = C(9, 2) = 36. The value 66 allows a child to get none.
  9. The number of distinct arrangements of the letters of MISSISSIPPI is:

    1. 34 650
    2. 39 916 800
    3. 11 550
    4. 69 300
    Show answer

    Answer: A — 34 650

    11! divided by 4! for the I's, 4! for the S's and 2! for the P's is 34 650. The value 39 916 800 is 11!, with no allowance for repeated letters.
  10. The value of C(10, 0)² + C(10, 1)² + … + C(10, 10)² is:

    1. C(20, 10)
    2. 2¹⁰
    3. C(10, 5)²
    4. 10 × 2⁹
    Show answer

    Answer: A — C(20, 10)

    The sum of squares of the binomial coefficients of order n is C(2n, n), so C(20, 10) = 184 756. The value 2¹⁰ is the sum of the coefficients themselves, not of their squares.
  11. The number of ways of arranging 4 distinct persons in a row is:

    1. 24
    2. 16
    3. 12
    4. 6
    Show answer

    Answer: A — 24

    The first place can be filled in 4 ways, the second in 3, and so on: 4! = 24. 16 = 4² allows repetition (each person could occupy several places), and 6 is ⁴C₂, a selection rather than an arrangement.
  12. The number of ways of choosing a committee of 3 from 7 persons is:

    1. 35
    2. 210
    3. 21
    4. 343
    Show answer

    Answer: A — 35

    Order does not matter, so ⁷C₃ = 35. 210 = ⁷P₃ counts ordered selections, and 343 = 7³ allows repetition.
  13. The value of C(10, 2) + C(10, 3) is:

    1. C(11, 3)
    2. C(10, 5)
    3. C(11, 2)
    4. C(20, 5)
    Show answer

    Answer: A — C(11, 3)

    Pascal's rule gives C(n, r − 1) + C(n, r) = C(n + 1, r), so C(10, 2) + C(10, 3) = C(11, 3) = 165. C(11, 2) would pair the wrong lower index with n + 1.
  14. The 4th term of the geometric progression 3, 6, 12, … is:

    1. 24
    2. 18
    3. 48
    4. 21
    Show answer

    Answer: A — 24

    The common ratio is 2, so the 4th term is 3 × 2³ = 24. 18 comes from adding 6 each time (an AP pattern), and 48 is the 5th term.
  15. 5 boys and 4 girls are to be seated in a row so that boys and girls alternate. The number of arrangements is:

    1. 2880
    2. 9!
    3. 5! × 5!
    4. 2 × 5! × 4!
    Show answer

    Answer: A — 2880

    With 5 boys and 4 girls alternation forces the pattern B G B G B G B G B, so the boys take positions 1, 3, 5, 7, 9 (5! ways) and the girls the 4 gaps (4! ways): 5! × 4! = 2880. The factor 2 would apply only if the numbers of boys and girls were equal.
  16. The number of derangements of 5 objects (arrangements with no object in its original place) is:

    1. 44
    2. 9
    3. 53
    4. 120
    Show answer

    Answer: A — 44

    D₅ = 5!(1 − 1/1! + 1/2! − 1/3! + 1/4! − 1/5!) = 120 − 120 + 60 − 20 + 5 − 1 = 44 (also D₅ = 4(D₄ + D₃) = 4(9 + 2)). 120 is all arrangements, and 9 is D₄.
  17. The sum of the coefficients in the expansion of (2x − 1)⁵ is:

    1. 1
    2. 32
    3. −1
    4. 243
    Show answer

    Answer: A — 1

    Setting x = 1 gives (2 − 1)⁵ = 1. 32 = 2⁵ uses only the coefficient of x and ignores the −1.
  18. The sum 1 + 2 + 4 + … + 2⁹ equals:

    1. 1023
    2. 1024
    3. 512
    4. 2047
    Show answer

    Answer: A — 1023

    A GP with a = 1, r = 2 and 10 terms has S = (2¹⁰ − 1)/(2 − 1) = 1023. 1024 is the next term 2¹⁰, one more than the sum.
  19. The value of Σ r · C(6, r) for r = 0 to 6 is:

    1. 192
    2. 64
    3. 384
    4. 96
    Show answer

    Answer: A — 192

    Since r C(n, r) = n C(n − 1, r − 1), the sum is n · 2ⁿ⁻¹ = 6 × 32 = 192. 64 = 2⁶ is the sum without the weights r, and 384 would be n · 2ⁿ.
  20. The number of rectangles of all sizes on an 8 × 8 chessboard is:

    1. 1296
    2. 204
    3. 64
    4. 36
    Show answer

    Answer: A — 1296

    A rectangle is fixed by choosing 2 of the 9 horizontal lines and 2 of the 9 vertical lines: ⁹C₂ × ⁹C₂ = 36 × 36 = 1296. 204 is the number of squares (Σ k² for k = 1 to 8), and 64 the unit squares only.
  21. The number of ways of choosing 5 cards of the same suit from a standard pack of 52 cards is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 5148

    Choose the suit in 4 ways and then 5 of its 13 cards in ¹³C₅ = 1287 ways: 4 × 1287 = 5148. Taking ⁵²C₅ (2598960) ignores the restriction, and 1287 alone fixes one suit.