Find the smallest positive integer that cannot be written in the form with nonnegative integers satisfying and .
Baltic Way competition problems, 2019
Solution
The number is .
Assume that has a representation as above. Then as . On the other hand, by it follows that the largest number that can be represented as above with is , a contradiction.
It remains to show that all natural numbers smaller than have a representation in the form with and . If some number has such a representation and or , then can be represented as or , respectively. Hence, we can represent all integers between and in the desired form. Therefore and because we have a representation for already, it suffices to show that the numbers with can be represented. Now the claim follows by and with for .
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.