Permutations count arrangements where order matters. Combinations count selections where order does not matter. The binomial theorem links combinations to algebra.
Factorial
n! = n × (n − 1) × ... × 1, with 0! = 1. For example 5! = 120.
Permutations
The number of ways to arrange r items chosen from n distinct items is
P(n, r) = n! / (n − r)!
Example: Choose a president and a secretary from 5 people: P(5, 2) = 5 × 4 = 20. Arranging all n items gives n!.
Combinations
The number of ways to choose r items from n, when order does not matter, is
C(n, r) = n! / ( r! (n − r)! )
Example: Choose a committee of 2 from 5 people: C(5, 2) = 20 / 2 = 10. Note C(n, r) = C(n, n − r) and P(n, r) = r! × C(n, r).
| Question | Order matters? | Use |
|---|---|---|
| Arrange 3 of 6 books on a shelf | Yes | P(6, 3) = 120 |
| Pick 3 of 6 books to carry | No | C(6, 3) = 20 |
Binomial coefficients and Pascal's triangle
C(n, r) are called binomial coefficients. They satisfy Pascal's rule: C(n, r) = C(n − 1, r − 1) + C(n − 1, r). The rows of Pascal's triangle are:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Binomial theorem
(x + y)ⁿ = C(n,0)xⁿ + C(n,1)xⁿ⁻¹y + ... + C(n,n)yⁿ
Example: (x + y)⁴ = x⁴ + 4x³y + 6x²y² + 4xy³ + y⁴.
Useful facts: the coefficients of (x + y)ⁿ add up to 2ⁿ, and the number of terms is n + 1. The general term is C(n, r) xⁿ⁻ʳ yʳ.
Worked example
Find the coefficient of x² in (1 + x)⁵. The term with x² is C(5, 2) x² = 10x², so the coefficient is 10.
Common mistakes
- Using permutation when the order does not matter.
- Forgetting 0! = 1.
- Writing the general term with the wrong power of the second variable.
Practice questions
- Find P(7, 3) and C(7, 3).
- How many 4-letter arrangements can be made from the letters of "CODE"?
- In how many ways can a team of 3 be chosen from 8 students?
- Expand (a + b)³.
- Find the coefficient of x³ in (1 + x)⁶.
Answers to the practice questions
- P(7, 3) = 210; C(7, 3) = 35.
- 4! = 24.
- C(8, 3) = 56.
- a³ + 3a²b + 3ab² + b³.
- C(6, 3) = 20.
Sources
- Official BCA syllabus Mathematics Foundations to Computer Science I, course code CC101, Unit II
- Kolman, Busby and Ross, Discrete Mathematical Structures, 6th edition, Pearson
