Maths Olympiad Prep

Library / IMO Shortlist /162 of 365

IMO Shortlist, 2019

Combinatorics Difficulty 8.5 Shortlist Prove it IMO

Let aa be a positive integer. We say that a positive integer bb is aa-good if (anb)−1\binom{a n}{b}-1 is divisible by an+1a n+1 for all positive integers nn with an⩾ba n \geqslant b. Suppose bb is a positive integer such that bb is aa-good, but b+2b+2 is not aa-good. Prove that b+1b+1 is prime.

Solutions — 2

Solution 1

We first show that bb is aa-good if and only if bb is even, and p∣ap \mid a for all primes p⩽bp \leqslant b.
To start with, the condition that an+1∣ (anb)−1a n+1 \left\lvert\,\binom{ a n}{b}-1\right. can be rewritten as saying that
an(an−1)⋯(an−b+1)b!≡1( mod an+1). \frac{a n(a n-1) \cdots(a n-b+1)}{b!} \equiv 1 \quad(\bmod a n+1) .
Suppose, on the one hand, there is a prime p⩽bp \leqslant b with p∤ap \nmid a. Take t=vp(b!)t=v_{p}(b!). Then there exist positive integers cc such that ac≡1( mod pt+1)a c \equiv 1\left(\bmod p^{t+1}\right). If we take cc big enough, and then take n=(p−1)cn=(p-1) c, then an=a(p−1)c≡p−1( mod pt+1)a n=a(p-1) c \equiv p-1\left(\bmod p^{t+1}\right) and an⩾ba n \geqslant b. Since p⩽bp \leqslant b, one of the terms of the numerator an(an−1)⋯(an−b+1)a n(a n-1) \cdots(a n-b+1) is an−p+1a n-p+1, which is divisible by pt+1p^{t+1}. Hence the pp-adic valuation of the numerator is at least t+1t+1, but that of the denominator is exactly tt. This means that p∣ (anb)p \left\lvert\,\binom{ a n}{b}\right., so p∤(anb)−1p \nmid \binom{a n}{b}-1. As p∣an+1p \mid a n+1, we get that an+1∤(anb)−1a n+1 \nmid \binom{a n}{b}-1, so bb is not aa-good.
On the other hand, if for all primes p⩽bp \leqslant b we have p∣ap \mid a, then every factor of b!b! is coprime to an+1a n+1, and hence invertible modulo an+1a n+1 : hence b!b! is also invertible modulo an+1a n+1. Then equation above reduces to:
an(an−1)⋯(an−b+1)≡b!( mod an+1). a n(a n-1) \cdots(a n-b+1) \equiv b!\quad(\bmod a n+1) .
However, we can rewrite the left-hand side as follows:
an(an−1)⋯(an−b+1)≡(−1)(−2)⋯(−b)≡(−1)bb!( mod an+1). a n(a n-1) \cdots(a n-b+1) \equiv(-1)(-2) \cdots(-b) \equiv(-1)^{b} b!\quad(\bmod a n+1) .
Provided that an>1a n>1, if bb is even we deduce (−1)bb!≡b!(-1)^{b} b!\equiv b! as needed. On the other hand, if bb is odd, and we take an+1>2(b!)a n+1>2(b!), then we will not have (−1)bb!≡b!(-1)^{b} b!\equiv b!, so bb is not aa-good. This completes the claim.
To conclude from here, suppose that bb is aa-good, but b+2b+2 is not. Then bb is even, and p∣ap \mid a for all primes p⩽bp \leqslant b, but there is a prime q⩽b+2q \leqslant b+2 for which q∤aq \nmid a : so q=b+1q=b+1 or q=b+2q=b+2. We cannot have q=b+2q=b+2, as that is even too, so we have q=b+1q=b+1 : in other words, b+1b+1 is prime.

Solution 2

We show only half of the claim of the previous solution: we show that if bb is aa-good, then p∣ap \mid a for all primes p⩽bp \leqslant b. We do this with Lucas' theorem.
Suppose that we have p⩽bp \leqslant b with p∤ap \nmid a. Then consider the expansion of bb in base pp; there will be some digit (not the final digit) which is nonzero, because p⩽bp \leqslant b. Suppose it is the ptp^{t} digit for t⩾1t \geqslant 1.
Now, as nn varies over the integers, an+1a n+1 runs over all residue classes modulo pt+1p^{t+1}; in particular, there is a choice of nn (with an>ba n>b ) such that the p0p^{0} digit of ana n is p−1p-1 (so p∣an+1)p \mid a n+1) and the ptp^{t} digit of ana n is 0. Consequently, p∣an+1p \mid a n+1 but p∣(anb)p \mid \binom{ a n}{b} (by Lucas' theorem) so p∤(anb)−1p \nmid \binom{a n}{b}-1. Thus bb is not aa-good.
Now we show directly that if bb is aa-good but b+2b+2 fails to be so, then there must be a prime dividing an+1a n+1 for some nn, which also divides (b+1)(b+2)(b+1)(b+2). Indeed, the ratio between (anb+2)\binom{a n}{b+2} and (anb)\binom{a n}{b} is (b+1)(b+2)/(an−b)(an−b−1)(b+1)(b+2) /(a n-b)(a n-b-1). We know that there must be a choice of an+1a n+1 such that the former binomial coefficient is 1 modulo an+1a n+1 but the latter is not, which means that the given ratio must not be 1 mod an+11 \bmod a n+1. If b+1b+1 and b+2b+2 are both coprime to an+1a n+1 then the ratio is 1, so that must not be the case. In particular, as any prime less than bb divides aa, it must be the case that either b+1b+1 or b+2b+2 is prime.
However, we can observe that bb must be even by insisting that an+1a n+1 is prime (which is possible by Dirichlet's theorem) and hence (anb)≡(−1)b=1\binom{a n}{b} \equiv(-1)^{b}=1. Thus b+2b+2 cannot be prime, so b+1b+1 must be prime.

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.