Baltic Way 2020 · Problem 18
Number Theory
Let be a positive integer. We say that an integer is a fan of if and there exist integers such that
Let be the number of fans of . Determine .
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Modular arithmetic · Diophantine equations
Solutions
Solution
Answer: .
To prove our claim we show that is multiplicative, that is, for coprime numbers , and that
(i) ,
(ii) ,
(iii) .
The multiplicative property follows from the Chinese Remainder Theorem.
(i) Integers and satisfy if and only if they are all even. In this case . Hence 0 is the only fan of 4 .
(ii) Integers and satisfy if and only if at least one of them is divisible by 5 . In this case . Hence 5 is the only fan of 5 .
(iii) We have . Hence is divisible by 101 for every integer . Hence the residue of upon division by 101 is a fan of 101 for every . If we substitute , then . Since 72 is coprime to 101 , the number can take any residue modulo 101 .
Note: In general for , we have as soon as we have at least one non-zero fan.
Contest context
Results from Baltic Way 2020
10 teams
- Mean score
- 1.7 / 5
- Scores of 4 or 5
- 3 / 10
- Estonia
- 1 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Germany | 5 / 5 |
| Norway | 4 / 5 |
| Poland | 2 / 5 |
| Finland | 0 / 5 |
| Latvia | 0 / 5 |
| Estonia | 1 / 5 |
| Denmark | 5 / 5 |
| Sweden | 0 / 5 |
| Lithuania | 0 / 5 |
| Iceland | 0 / 5 |