Maths Olympiad Prep

Track / Stage 8 / 93 of 180 #1793 of 1964

Problem 1793

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.2 Prove it

Prove that for any odd prime number p, p, the number of positive integer n n satisfying pn!\plus1 p|n! \plus{} 1 is less than or equal to cp23. cp^\frac{2}{3}. where c c is a constant independent of p. p.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Define Good Integers:
Let n n be a positive integer such that pn!+1 p \mid n! + 1 . We call such an integer n n a good integer. Note that p1 p-1 is the largest good integer because for np n \geq p , n! n! is divisible by p p , making n!+1 n! + 1 not divisible by p p .

2. Lemma 1:
For each positive integer t t , there are at most t t good integers k k such that k+t k + t is also good.

Proof of Lemma 1:
Suppose p p divides both (k+t)!+1 (k+t)! + 1 and k!+1 k! + 1 . Then:
p((k+t)!+1)(k!+1)=k!((k+1)(k+2)(k+t)1). p \mid \big((k+t)! + 1\big) - \big(k! + 1\big) = k! \big((k+1)(k+2) \cdots (k+t) - 1\big).
Since k k is a good integer, gcd(p,k!)=1 \gcd(p, k!) = 1 . Therefore:
p(k+1)(k+2)(k+t)1. p \mid (k+1)(k+2) \cdots (k+t) - 1.
The right-hand side is a polynomial of degree t t in k k , which has at most t t solutions in Fp \mathbb{F}_p by Lagrange's theorem. \blacksquare

3. Sequence of Good Integers:
Let n1<n2<<nm=p1 n_1 < n_2 < \cdots < n_m = p-1 denote the set of good integers. For each 1jp 1 \leq j \leq p , let aj a_j denote the number of integers 1km 1 \leq k \leq m such that nknk1=j n_k - n_{k-1} = j . By Lemma 1, ajj a_j \leq j for each j j .

4. Sum of Differences:
We have:
a1+2a2++pap=k=1m(nknk1)=nmn1p. a_1 + 2a_2 + \cdots + pa_p = \sum_{k=1}^m (n_k - n_{k-1}) = n_m - n_1 \leq p.
We wish to maximize a1+a2++ap a_1 + a_2 + \cdots + a_p .

5. Lemma 2:
Suppose b1,,bn b_1, \ldots, b_n are nonnegative real numbers such that:
b1+2b2++nbnnandbii for all i. b_1 + 2b_2 + \cdots + nb_n \leq n \quad \text{and} \quad b_i \leq i \text{ for all } i.
Then there exists a constant c>0 c > 0 such that:
b1+b2++bncn2/3. b_1 + b_2 + \cdots + b_n \leq c n^{2/3}.

Proof of Lemma 2:
Without loss of generality, we may replace the condition with b1+2b2++nbn=n b_1 + 2b_2 + \cdots + nb_n = n . Consider an arbitrary n n -tuple (b1,,bn) (b_1, \ldots, b_n) of nonnegative real numbers satisfying the given conditions. If there exist integers r<s r < s with br<r b_r < r but bs>0 b_s > 0 , then we may replace (b1,,bn) (b_1, \ldots, b_n) by the tuple:
(b1,,bn)=(b1,,br1,br+sεr,br+1,,bs1,bsε,bs+1,), (b_1', \ldots, b_n') = (b_1, \ldots, b_{r-1}, b_r + \frac{s\varepsilon}{r}, b_{r+1}, \ldots, b_{s-1}, b_s - \varepsilon, b_{s+1}, \ldots),
where ε \varepsilon is chosen small enough that br+sεr<r b_r + \frac{s\varepsilon}{r} < r and bs>ε b_s > \varepsilon . Then:
b1+2b2++nbn=b1+2b2++nbn=n, b_1' + 2b_2' + \cdots + nb_n' = b_1 + 2b_2 + \cdots + nb_n = n,
but the sum b1+b2++bn b_1 + b_2 + \cdots + b_n increases. This means that (b1,,bn) (b_1, \ldots, b_n) does not achieve our maximum. In particular, our maximum is achieved when:
bj={jif 1jt,0if jt+2, b_j = \begin{cases} j & \text{if } 1 \leq j \leq t, \\ 0 & \text{if } j \geq t+2, \end{cases}
where t t is some positive integer at most n n .

Finally, observe that:
n=b1+2b2++nbn12+22++t2t3, n = b_1 + 2b_2 + \cdots + nb_n \geq 1^2 + 2^2 + \cdots + t^2 \gtrsim t^3,
and hence tn1/3 t \lesssim n^{1/3} . Then:
b1+b2++bn=b1++bt+11++(t+1)t2n2/3, b_1 + b_2 + \cdots + b_n = b_1 + \cdots + b_{t+1} \leq 1 + \cdots + (t+1) \lesssim t^2 \lesssim n^{2/3},
and so b1++bncn2/3 b_1 + \cdots + b_n \leq c n^{2/3} for some constant c c . \blacksquare

6. Application of Lemma 2:
Apply Lemma 2 to the sequence (a1,,ap) (a_1, \ldots, a_p) . Since a1+2a2++papp a_1 + 2a_2 + \cdots + pa_p \leq p and aii a_i \leq i , we conclude that:
a1+a2++apcp2/3. a_1 + a_2 + \cdots + a_p \leq c p^{2/3}.

The final answer is cp2/3 \boxed{c p^{2/3}} .

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.