All four-digit positive integers which are rearrangements of the number are written in increasing order. What is the largest possible difference between two adjacent numbers in this list?
South African Mathematics Olympiad Third Round
Solution
is the smallest number starting with a and is the largest number starting with a . The difference between these is . Adjacent numbers between and will be less than apart, while adjacent numbers larger than will be less than apart. Thus .
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.