Problem:
What is the smallest positive integer such that and both contain the digit 7 but does not?
Harvard-MIT Mathematics Tournament
Solution
Solution:
The last digit of a square is never 7. No two-digit squares begin with 7. There are no 3-digit squares beginning with the digits , or . In fact, the smallest square containing the digit 7 is . Checking the next few numbers, we see that , , , , and , so the answer is 27.
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.