Maths Olympiad Prep

Library / February /56 of 62

February, 2017

Combinatorics Difficulty 6.8 National Olympiad Prove it United States

Problem:

Let pp be a prime. A complete residue class modulo pp is a set containing at least one element equivalent to k(modp)k \pmod{p} for all kk.

a. Show that there exists an nn such that the nnth row of Pascal's triangle forms a complete residue class modulo pp.

b. Show that there exists an n≤p2n \leq p^{2} such that the nnth row of Pascal's triangle forms a complete residue class modulo pp.

Solution

Solution:

We use the following theorem of Lucas:
Theorem. Given a prime pp and nonnegative integers a,ba, b written in base pp as a={an‾an−1…a0}pa=\{\overline{a_{n}} a_{n-1} \ldots a_{0}\}_{p} and b=bnbn−1…b0‾b=\overline{b_{n} b_{n-1} \ldots b_{0}} respectively, where 0≤ai,bi≤p−10 \leq a_{i}, b_{i} \leq p-1 for 0≤i≤n0 \leq i \leq n, we have
(ab)=∏i=0n(aibi)( mod p) \binom{a}{b}=\prod_{i=0}^{n}\binom{a_{i}}{b_{i}} \quad(\bmod p)
Now, let n=(p−1)×p+(p−2)=p2−2n=(p-1) \times p+(p-2)=p^{2}-2. For k=pq+rk=pq+r with 0≤q,r≤p−10 \leq q, r \leq p-1, applying Lucas's theorem gives
(nk)≡(p−1q)(p−2r)( mod p) \binom{n}{k} \equiv \binom{p-1}{q}\binom{p-2}{r} \quad(\bmod p)
Note that
(p−1q)=∏i=1qp−ii≡(−1)q( mod p) \binom{p-1}{q}=\prod_{i=1}^{q} \frac{p-i}{i} \equiv (-1)^{q} \quad(\bmod p)
and
(p−2r)=∏i=1rp−1−ii≡(−1)r(r+1)!r!=(−1)r(r+1)( mod p) \binom{p-2}{r}=\prod_{i=1}^{r} \frac{p-1-i}{i} \equiv (-1)^{r} \frac{(r+1)!}{r!}=(-1)^{r}(r+1) \quad(\bmod p)
So for 2≤i≤p2 \leq i \leq p we can take k=(p+1)(i−1)k=(p+1)(i-1) and obtain (nk)≡i ( mod p)\binom{n}{k} \equiv i\ (\bmod p), while for i=1i=1 we can take k=0k=0. Thus this row satisfies the desired property.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.