A positive integer is called nice if for any pair () of positive integers satisfying the condition we have .
1. Prove that is a nice number;
2. Find all nice numbers.
Saudi Arabian Mathematical Competitions
Solution
1) For , we need to prove that for all satisfying then . Note that or , then .
Then . We consider some cases:
- If then .
- If then .
- If then .
- If then .
So in all cases, we always have , which implies that is a nice number.
2) We can directly check that is a nice number. Consider some nice number . By a similar way, we can check that and
Thus . In case , we have
We must have then . Since , this means that or .
It is easy to check that is also a nice number. Therefore, all nice numbers are .
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.