The integers and are such that and . What integer values can the expression take?
Slovenia — National Math Olympiad, 2012
Solution
The equality gives us . If , the equality holds, and from the inequality we derive or . Hence .
If, on the other hand, , the equality reduces to . Using the last relation in the inequality we derive , and hence . We conclude .
The expression can take all values smaller or equal to as well as values , and .
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.