Unit summary
The sum and product rules, inclusion-exclusion and the pigeonhole principle are the basic counting tools. P(n, r) counts ordered selections and C(n, r) unordered ones; binomial coefficients appear in the binomial theorem. Recurrence relations model Fibonacci numbers and the Tower of Hanoi (T(n) = 2T(n−1) + 1, solved by 2ⁿ − 1). Linear homogeneous recurrences with constant coefficients are solved with the characteristic equation: distinct roots give A r₁ⁿ + B r₂ⁿ and a repeated root gives (A + Bn) rⁿ.
Glossary
| Term | Meaning |
|---|---|
| Pigeonhole principle | n + 1 objects in n boxes puts two in one box |
| Permutation | Ordered arrangement of r of n objects |
| Combination | Unordered selection of r of n objects |
| Binomial coefficient | The number C(n, r) |
| Recurrence relation | Rule giving a term from earlier terms |
| Initial condition | Starting values of a recurrence |
| Characteristic equation | Polynomial whose roots solve the recurrence |
| Fibonacci numbers | Sequence where each term is the sum of the previous two |
| Tower of Hanoi | Puzzle needing 2ⁿ − 1 moves for n disks |
| Linear recurrence | Earlier terms appear to the first power only |
Question bank
Short answer questions
- State the pigeonhole principle.
- Find C(8, 3).
- Write the Fibonacci recurrence.
- Expand (x + y)³.
- Find T(4) for the Tower of Hanoi.
Long answer questions
- Explain permutations and combinations with examples.
- State and prove the binomial theorem for n = 3.
- Model the Tower of Hanoi by a recurrence and solve it.
- Solve aₙ = 5aₙ₋₁ − 6aₙ₋₂ with a₀ = 1, a₁ = 0.
- Solve the Fibonacci recurrence by the characteristic equation method.
Sources
- Official BCA syllabus Mathematics Foundations to Computer Science I, course code CC101, Unit II
