Skip to main content
OlympiadHQ

Browse · MathNet

Print

China Girls' Mathematical Olympiad

China algebra

Problem

For positive integer , . Compute the maximum value and the minimum value of . (For real number , denotes the greatest integer less than or equal to .) (Posed by Wang Zhixiong)
Solution
Let , , (). Then In particular, , . For every , there are unique integers such that , and . Since , is a permutation of , and it is clear that is nondecreasing: For our convenience, let . We have Since it follows that and this is strictly decreasing. Now, since , , , , , we see that attains the maximum and the minimum.
Final answer
Maximum value: 1 − (2 − √5)^6 (attained at n = 1292). Minimum value: 1 − 5470(2 − √5)^6 + 1291(2 − √5)^7 (attained at n = 1597).

Techniques

Recurrence relationsFloors and ceilingsGreatest common divisors (gcd)Inverses mod n