Maths Olympiad Prep

Track / Stage 8 / 134 of 180 #1834 of 1964

Problem 1834

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.5 Prove it 2023 Chinese IMO National Team Selection Test · China · 2023

For positive integers m,nm, n, define
S(m,n)={(a,b)Z21am,1bn,gcd(a,b)=1}. S(m, n) = \{(a, b) \in \mathbb{Z}^2 \mid 1 \le a \le m, 1 \le b \le n, \gcd(a, b) = 1\}.
Prove: for any positive integers d,rd, r, there exist integers m,nm, n not less than dd, such that S(m,n)r(modd)|S(m, n)| \equiv r \pmod{d}. Here, A|A| represents the number of elements in the finite set AA.

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

Let n=d+rn = d + r and m=d(d+r)+1m = d \cdot (d+r) + 1. Then, for 1bd+r1 \le b \le d+r, the number of integers in the range 1,2,,m1, 2, \dots, m that are coprime to bb is given by
φ(b)bd(d+r)!+1. \frac{\varphi(b)}{b} \cdot d \cdot (d+r)! + 1.
Note that bb divides (d+r)!(d+r)!, so this number is congruent to 11 modulo bb. Therefore,
S(m,n)b=1d+r1r(modd). |S(m, n)| \equiv \sum_{b=1}^{d+r} 1 \equiv r \pmod{d}.

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