Maths Olympiad Prep

Track / Stage 8 / 111 of 180 #2451 of 2604

Problem 2451

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

For positive integers m,nm, n, define
S(m,n)={(a,b)∈Z2∣1≤a≤m,1≤b≤n,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.

Next problem →

Official solution

Let n=d+rn = d + r and m=d⋅(d+r)+1m = d \cdot (d+r) + 1. Then, for 1≤b≤d+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)b⋅d⋅(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+r1≡r(modd). |S(m, n)| \equiv \sum_{b=1}^{d+r} 1 \equiv r \pmod{d}.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.