John is older than Mary. He notices that if he switches the two digits of his age (an integer), he gets Mary's age. Moreover, the difference between the squares of their ages is the square of an integer. How old are Mary and John?
Solution
Let John's age be where . Then Mary's age is , and hence . Now
Since this is the square of an integer, or must be divisible by 11 . The only possibility is clearly . Hence must be a square. A case study yields the only possibility . Thus John is 65 and Mary 56 years old.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.