Olympiad Maths Prep

Track / Stage 8 / 37 of 180 #1737 of 2000

Problem 1737

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.1 Prove it Team Selection Test for IMO · North Macedonia

Let aa and nn be integers. We define an=1+a+a2++an1a_n = 1 + a + a^2 + \dots + a^{n-1}. Prove that if ap1(modp)a^p \equiv 1 \pmod p for every prime divisor pp of n2n1n_2 - n_1, then the number an2an1n2n1\frac{a_{n_2} - a_{n_1}}{n_2 - n_1} is an integer.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Lemma. Let aa and nn be integers such that a1(modp)a \equiv 1 \pmod p for each prime pnp \nmid n and an=1+a+a2++an1a_n = 1 + a + a^2 + \dots + a^{n-1}. Then nann \mid a_n.

Proof of the lemma. Let prp^r be the largest power of the prime number pp such that prnp^r \mid n. We will prove the equality
1+a+a2++an1=(1+apr+a2pr++a(p1)pr)k=1r(1+apk1+a2pk1++a(p1)pk1) 1+a+a^2+\dots+a^{n-1} = \left(1+a^{p^r}+a^{2p^r}+\dots+a^{(p-1)p^r}\right) \prod_{k=1}^{r} \left(1+a^{p^{k-1}}+a^{2p^{k-1}}+\dots+a^{(p-1)p^{k-1}}\right)
for each integer aa. If a=1a=1 the left-hand side is nn and the right-hand side is nprpr=n\frac{n}{p^r}p^r = n (one pp for each term in the product). Let a1a \neq 1. If we multiply the left-hand side and right-hand side by a1a-1 from the right we get
(a1)(1+a++ap1)(1+ap+a2p++a(p1)p)(1+a2pr++apr)=(ap1)(1+ap+a2p++a(p1)p)(1+a2pr++apr)=(ap21)(1+ap2++a(p1)p2)(1+apk1++apk1)=(apr1)(1+apr++apr1)=an1 \begin{aligned} & (a-1)(1+a+\dots+a^{p-1})(1+a^p+a^{2p}+\dots+a^{(p-1)p})\dots \left(1+a^{2p^r}+\dots+a^{p^r}\right) \\ &= (a^p-1)(1+a^p+a^{2p}+\dots+a^{(p-1)p})\dots \left(1+a^{2p^r}+\dots+a^{p^r}\right) \\ &= (a^{p^2}-1)(1+a^{p^2}+\dots+a^{(p-1)p^2})\dots \left(1+a^{p^{k-1}}+\dots+a^{p^{k-1}}\right) \\ &= (a^{p^r}-1)\left(1+a^{p^r}+\dots+a^{p^{r-1}}\right) = a^n-1 \end{aligned}
Each expression in the product is divisible by pp since
1+apk1+a2pk1++a(p1)pk1=(apk11)+(a2pk11)++(a(p1)pk11)+p 1+a^{p^{k-1}}+a^{2p^{k-1}}+\dots+a^{(p-1)p^{k-1}} = (a^{p^{k-1}}-1)+(a^{2p^{k-1}}-1)+\dots+(a^{(p-1)p^{k-1}}-1)+p
each of the expressions in brackets is divisible by pp.

Without loss of generality we can assume that n1<n2n_1 < n_2. It is clear that
an2an1n2n1=1+a++an211aan11n2n1=an1(1+a++an2n11)n2n1 \frac{a_{n_2} - a_{n_1}}{n_2 - n_1} = \frac{1 + a + \dots + a^{n_2-1} - 1 - a - \dots - a^{n_1-1}}{n_2 - n_1} = \frac{a^{n_1}(1 + a + \dots + a^{n_2-n_1-1})}{n_2 - n_1}
Using the lemma we get (n2n1)an2n1(n_2 - n_1) \mid a_{n_2 - n_1} from where we get that the number an2an1n2n1\frac{a_{n_2} - a_{n_1}}{n_2 - n_1} is a natural number.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.