Maths Olympiad Prep

Track / Stage 7 / 166 of 300 #1566 of 1964

Problem 1566

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Prove it

Lemma 2 Let pp be a prime, mm an integer, pmp \nmid m, prove that there must exist integers x,yx, y, such that
mxy(modp),1<x<p1<y<p,\begin{aligned} m x \equiv y(\bmod p), \\ 1<x<\sqrt{p} \quad 1<y<\sqrt{p}, \end{aligned}

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

Consider the set formed by mt+umt + u when t,ut, u take all the [p]+1[\sqrt{p}] + 1 integers 0,1,,[p]0, 1, \cdots, [\sqrt{p}]. Since tt and uu each take [p]+1[\sqrt{p}] + 1 values, this results in ([p]+1)2([\sqrt{p}] + 1)^2 values of mt+umt + u. Note that
([p]+1)2>(p)2=p([\sqrt{p}] + 1)^2 > (\sqrt{p})^2 = p
Thus, there are at least two pairs of numbers t1,u1t_1, u_1 and t2,u2t_2, u_2 such that mt1+u1mt2+u2(modp)mt_1 + u_1 \equiv mt_2 + u_2 \pmod{p}, i.e.,
mt1+u1mt2+u2(modp)mt_1 + u_1 \equiv mt_2 + u_2 \pmod{p}

Since t1,u1t_1, u_1 and t2,u2t_2, u_2 are two distinct pairs of numbers, it cannot be the case that
t1=t2,u1=u2t_1 = t_2, u_1 = u_2

(1) If t1=t2t_1 = t_2, then (5) becomes
u1u2(modp)u_1 \equiv u_2 \pmod{p}

Assume u1u2u_1 \geqslant u_2, then 0u1u2[p]0 \leqslant u_1 - u_2 \leqslant [\sqrt{p}]. Let t1t2=x,u2u1=yt_1 - t_2 = x, u_2 - u_1 = y, then we have
1<x<[p]<p,1<y[p]<p1 < x < [\sqrt{p}] < \sqrt{p}, 1 < |y| \leqslant [\sqrt{p}] < \sqrt{p}

and
mxy(modp)mx \equiv y \pmod{p}

This is exactly what we need to prove.
Now we can proceed to prove the main result of this section.

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