Maths Olympiad Prep

Track / Stage 6 / 314 of 400 #1954 of 2604

Problem 1954

National Olympiad, first round
Number theory Difficulty 6.6 Prove it CGMO · China · 2024

Find the smallest real number λ\lambda with the following property: For any positive integers aa, bb, nn where a+ba + b is not divisible by nn, there exists a positive integer k<nk < n such that
{akn}+{bkn}≤λ, \left\{ \frac{ak}{n} \right\} + \left\{ \frac{bk}{n} \right\} \le \lambda,
where {x}=x−⌊x⌋\{x\} = x - \lfloor x \rfloor denotes the fractional part of xx.

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

Proof. The minimal λ\lambda is 23\frac{2}{3}.

First, we show λ≥23\lambda \ge \frac{2}{3}. Consider n=3n = 3 with a=b=1a = b = 1. For k=1,2k = 1, 2, we have:
{k3}+{k3}=2k3≥23, \left\{ \frac{k}{3} \right\} + \left\{ \frac{k}{3} \right\} = \frac{2k}{3} \ge \frac{2}{3},
thus λ\lambda cannot be smaller than 23\frac{2}{3}.

Now we prove λ≤23\lambda \le \frac{2}{3}. Let nn be a positive integer and aa, bb positive integers with n∤a+bn \nmid a + b. We need to find 1≤k≤n−11 \le k \le n - 1 satisfying the inequality.

Case 1: n=2n = 2. Without loss of generality, take a=1a = 1, b=1b = 1. For k=1k = 1:
{12}+{12}=12<23. \left\{ \frac{1}{2} \right\} + \left\{ \frac{1}{2} \right\} = \frac{1}{2} < \frac{2}{3}.

Case 2: n≥3n \ge 3.

Subcase 2.1: gcd(a,n)=d>1\text{gcd}(a, n) = d > 1. Let k=ndk′k = \frac{n}{d}k' where 1≤k′≤d−11 \le k' \le d - 1. Then:
{akn}+{bkn}={bk′d}. \left\{ \frac{ak}{n} \right\} + \left\{ \frac{bk}{n} \right\} = \left\{ \frac{bk'}{d} \right\}.
Since {bk′d}+{b(d−k′)d}∈{0,1}\left\{ \frac{bk'}{d} \right\} + \left\{ \frac{b(d-k')}{d} \right\} \in \{0, 1\}, taking k′=1k' = 1 or d−1d - 1 gives:
{bk′d}≤12<23. \left\{ \frac{bk'}{d} \right\} \le \frac{1}{2} < \frac{2}{3}.

Subcase 2.2: gcd(a,n)=1\text{gcd}(a, n) = 1. Let tt be such that ta≡1(modn)ta \equiv 1 \pmod{n}. Replacing aa with ta(modn)ta \pmod{n} and bb with tb(modn)tb \pmod{n}, we may assume a=1a = 1 and 1≤b≤n−21 \le b \le n - 2.
Let e=1−1n−bn≥1ne = 1 - \frac{1}{n} - \frac{b}{n} \ge \frac{1}{n}.

When e≥13e \ge \frac{1}{3}: Take k=1k = 1:
{1n}+{bn}=1−e≤23. \left\{ \frac{1}{n} \right\} + \left\{ \frac{b}{n} \right\} = 1 - e \le \frac{2}{3}.

When e<13e < \frac{1}{3}: Let kk be the smallest positive integer with ke≥13ke \ge \frac{1}{3}. Then:
k=⌊13e⌋≤⌊n3⌋<n3+1≤n−1. k = \left\lfloor \frac{1}{3e} \right\rfloor \le \left\lfloor \frac{n}{3} \right\rfloor < \frac{n}{3} + 1 \le n - 1.
Let e=lne = \frac{l}{n} where ll is integer and 3l<n3l < n (since e<13e < \frac{1}{3}). We have:
ke+kn≤(n+3l−1)(l+1)3ln≤2(l+1)3l+1≤1. ke + \frac{k}{n} \le \frac{(n + 3l - 1)(l + 1)}{3ln} \le \frac{2(l + 1)}{3l + 1} \le 1.

This implies:
{kn}+{kbn}=1−ke≤23. \left\{ \frac{k}{n} \right\} + \left\{ \frac{kb}{n} \right\} = 1 - ke \le \frac{2}{3}.

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