2078 8

CSC165 · 2078 · 5 marks

Show that if there are 30 students in a class, then at least two have same names that begin with the same letter. Explain the pascal's triangle.

Show that if there are 30 students in a class, then at least two have same names that begin with the same letter. Explain the pascal's triangle. [5]

Discrete StructuresChapter 5: Counting and Discrete ProbabilityPigeonhole PrincipleNumerical: pigeonhole principle

Pigeonhole Principle and Pascal's Triangle

Given Data

  • Number of students = 30
  • Number of letters in the English alphabet = 26

Part 1: At Least Two Students Have Names Beginning with the Same Letter

Principle Used: Pigeonhole Principle

Statement: If $n$ objects are placed into $k$ boxes and $n > k$, then at least one box contains two or more objects.

More generally, if $n$ objects are placed into $k$ boxes, then at least one box contains at least $\left\lceil \dfrac{n}{k} \right\rceil$ objects.

Proof

Set up the correspondence:

  • Pigeonholes (boxes): the 26 letters of the alphabet that a name can begin with. So $k = 26$.
  • Pigeons (objects): the 30 students, each classified by the first letter of their name. So $n = 30$.

Since

$$n = 30 > 26 = k,$$

by the Pigeonhole Principle at least one letter (box) must be assigned to more than one student.

Using the generalized form, the most crowded letter contains at least

$$\left\lceil \frac{30}{26} \right\rceil = \lceil 1.153\ldots \rceil = 2 \text{ students.}$$

Conclusion: At least two students have names beginning with the same letter. (Proved)

Worst case reasoning: Even if the first 26 students all get distinct starting letters, the remaining $30 - 26 = 4$ students must reuse letters already taken, forcing a repetition.


Part 2: Pascal's Triangle

Definition

Pascal's Triangle is a triangular array of the binomial coefficients $\binom{n}{r}$, where each interior entry equals the sum of the two entries directly above it.

Construction Rule

$$\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r}$$

with boundary conditions

$$\binom{n}{0} = 1, \qquad \binom{n}{n} = 1 \quad \text{for all } n \ge 0.$$

The Triangle (First 6 rows)

Row 0:            1
Row 1:          1   1
Row 2:        1   2   1
Row 3:      1   3   3   1
Row 4:    1   4   6   4   1
Row 5:  1   5  10  10   5   1

Key Properties

PropertyDescription
Symmetry$\binom{n}{r} = \binom{n}{n-r}$
Row Sum$\displaystyle\sum_{r=0}^{n}\binom{n}{r} = 2^{n}$
Binomial TheoremRow $n$ gives coefficients of $(x+y)^n$
BordersAll edge entries equal $1$

Application: Binomial Theorem

$$(x+y)^n = \sum_{r=0}^{n}\binom{n}{r} x^{n-r} y^{r}$$

Using Row 3:

$$(x+y)^3 = x^3 + 3x^2y + 3xy^2 + y^3$$

Verification of the addition rule

$$\binom{4}{2} = \binom{3}{1} + \binom{3}{2} = 3 + 3 = 6,$$

which matches the middle entry of Row 4.


Summary: With 30 students and only 26 possible initial letters, the Pigeonhole Principle guarantees at least two students share a starting letter. Pascal's Triangle arranges the binomial coefficients so each value is the sum of the two above it, encoding the coefficients of $(x+y)^n$.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.