Olympiad Maths Prep

Track / Stage 8 / 113 of 180 #1813 of 2000

Problem 1813

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.4 Prove it

Let ν\nu be an irrational positive number, and let mm be a positive integer. A pair of (a,b)(a,b) of positive integers is called [i]good[/i] if
abνbaν=m.a \left \lceil b\nu \right \rceil - b \left \lfloor a \nu \right \rfloor = m. A good pair (a,b)(a,b) is called [i]excellent[/i] if neither of the pair (ab,b)(a-b,b) and (a,ba)(a,b-a) is good.

Prove that the number of excellent pairs is equal to the sum of the positive divisors of mm.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. **Define the function f(a,b) f(a,b) :**
f(a,b)=abνbaν f(a,b) = a \lceil b\nu \rceil - b \lfloor a\nu \rfloor
We need to show that the number of excellent pairs (a,b)(a,b) is equal to the sum of the positive divisors of mm.

2. **Relate f(a,b) f(a,b) to f(a+b,b) f(a+b,b) and f(a,b+a) f(a,b+a) :**
- If {aν}+{bν}1\{a\nu\} + \{b\nu\} \geq 1, then:
f(a+b,b)=(a+b)bνb(a+b)ν=abνbaν+b(bνbν)=f(a,b)+b f(a+b,b) = (a+b) \lceil b\nu \rceil - b \lfloor (a+b)\nu \rfloor = a \lceil b\nu \rceil - b \lfloor a\nu \rfloor + b (\lceil b\nu \rceil - \lfloor b\nu \rfloor) = f(a,b) + b
because (a+b)ν=aν+bν\lfloor (a+b)\nu \rfloor = \lfloor a\nu \rfloor + \lfloor b\nu \rfloor.

- Similarly, for f(a,b+a) f(a,b+a) :
f(a,b+a)=a(b+a)ν(b+a)aν=a(bν+aν1)(b+a)aν=abνbaν=f(a,b) f(a,b+a) = a \lceil (b+a)\nu \rceil - (b+a) \lfloor a\nu \rfloor = a (\lceil b\nu \rceil + \lceil a\nu \rceil - 1) - (b+a) \lfloor a\nu \rfloor = a \lceil b\nu \rceil - b \lfloor a\nu \rfloor = f(a,b)

- When {aν}+{bν}<1\{a\nu\} + \{b\nu\} < 1, we have:
f(a,b)=f(a+b,b)=f(a,b+a)a f(a,b) = f(a+b,b) = f(a,b+a) - a

3. **If (a,b)(a,b) is excellent, then min(a,b)m\min(a,b) \leq m:**
- For c,d0c,d \geq 0, f(c,d)=cdνdcν0 f(c,d) = c \lceil d\nu \rceil - d \lfloor c\nu \rfloor \geq 0 .
- If (a,b)(a,b) is excellent, then f(ab,b) f(a-b,b) and f(a,ba) f(a,b-a) are not equal to f(a,b) f(a,b) .
- If min(a,b)=a\min(a,b) = a, then:
0f(a,ba)=f(a,b)a=ma    am 0 \leq f(a,b-a) = f(a,b) - a = m - a \implies a \leq m
- Similarly, if min(a,b)=b\min(a,b) = b, then:
0f(ab,b)=f(a,b)b=mb    bm 0 \leq f(a-b,b) = f(a,b) - b = m - b \implies b \leq m

4. Define relevant pairs and branches:
- A pair (a,b)(a,b) is relevant if a,ba, b are positive integers, min(a,b)m\min(a,b) \leq m, and f(a,b)m f(a,b) \leq m .
- Draw arrows from (a,b)(a+b,b)(a,b) \rightarrow (a+b,b) and (a,b)(a,b+a)(a,b) \rightarrow (a,b+a).
- This forms a tree due to the Euclidean Algorithm's uniqueness.

5. Prove that relevant branches are finite:
- Suppose B(a,b) B_{(a,b)} is infinite. Choose an infinite path of pairs (ci,di)(c_i,d_i) for i=1,2,i = 1, 2, \ldots.
- Since min(ci,di)m\min(c_i,d_i) \leq m, there exists MM such that ci=cc_i = c for all iMi \geq M.
- f(ci,di)m f(c_i,d_i) \leq m and is non-decreasing, so it is eventually constant.
- This leads to a contradiction because {cν}+{(dM+(iM)ci)ν}1\{c\nu\} + \{(d_M + (i-M)c_i)\nu\} \geq 1 for all iMi \geq M, which is impossible for an irrational ν\nu.

6. Count solutions and excellent pairs:
- Let N(a,b) N(a,b) be the number of solutions for x,yZ0 x, y \in \mathbb{Z}_{\geq 0} in ax+by+f(a,b)=m ax + by + f(a,b) = m .
- Let g(a,b) g(a,b) be the number of excellent pairs in B(a,b) B_{(a,b)} .
- We claim N(a,b)=g(a,b) N(a,b) = g(a,b) .

7. **Lemma: N(a,b)=N(a+b,b)+N(a,b+a) N(a,b) = N(a+b,b) + N(a,b+a) :**
- If {aν}+{bν}1\{a\nu\} + \{b\nu\} \geq 1:
(a+b)x+by+f(a+b,b)=m    ax+b(x+y+1)+f(a,b)=m    ax+by+f(a,b)=m (a+b)x + by + f(a+b,b) = m \iff ax + b(x+y+1) + f(a,b) = m \iff ax' + by' + f(a,b) = m
where x=x x' = x and y=x+y+1 y' = x + y + 1 .
- Similarly:
ax+(b+a)y+f(a,b+a)=m    a(x+y)+by+f(a,b)=m    ax+by+f(a,b)=m ax + (b+a)y + f(a,b+a) = m \iff a(x+y) + by + f(a,b) = m \iff ax' + by' + f(a,b) = m
where x=x+y x' = x + y and y=y y' = y .

8. **Prove g(a,b)=N(a,b) g(a,b) = N(a,b) :**
- If (a,b)(a,b) is excellent, then g(a,b)=1 g(a,b) = 1 and N(a,b)=1 N(a,b) = 1 because x=y=0 x = y = 0 .
- Otherwise, g(a,b)=g(a+b,b)+g(a,b+a) g(a,b) = g(a+b,b) + g(a,b+a) because the set of arrows and pairs form a tree.
- Using induction, g(a,b)=N(a,b) g(a,b) = N(a,b) for all relevant (a,b)(a,b).

9. Finishing the proof:
- Let k(m) k(m) be the number of excellent pairs for m m .
- Partition the set of positive integer pairs (a,b)(a,b) into sets T1,T2, T_1, T_2, \ldots where (a,b)Tgcd(a,b)(a,b) \in T_{\gcd(a,b)}.
- Then:
k(m)=i=1g(i,i)=i=1N(i,i) k(m) = \sum_{i=1}^\infty g(i,i) = \sum_{i=1}^\infty N(i,i)
- We know:
N(i,i)={0if immiif im N(i,i) = \begin{cases} 0 & \text{if } i \nmid m \\ \frac{m}{i} & \text{if } i \mid m \end{cases}
- Therefore:
k(m)=i=1N(i,i)=dmN(d,d)=dmmd=dmd=σ(m) k(m) = \sum_{i=1}^\infty N(i,i) = \sum_{d \mid m} N(d,d) = \sum_{d \mid m} \frac{m}{d} = \sum_{d \mid m} d = \sigma(m)

\blacksquare

The final answer is σ(m) \boxed{ \sigma(m) }

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