Baltic Way 1995 · Problem 4
Number Theory
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?
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Diophantine equations · Divisibility and factorization
Solutions
Solution
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 . The only possibility is clearly . Hence must be a square. A case study yields the only possibility . Thus John is and Mary years old.
Contest context
Results from Baltic Way 1995
9 teams
- Mean score
- 5.0 / 5
- Scores of 4 or 5
- 9 / 9
- Estonia
- 5 / 5
Score distribution
00
10
20
30
40
59
All team scores
| Team | Score |
|---|---|
| Poland | 5 / 5 |
| Latvia | 5 / 5 |
| Sweden | 5 / 5 |
| Lithuania | 5 / 5 |
| Denmark | 5 / 5 |
| Finland | 5 / 5 |
| St. Petersburg | 5 / 5 |
| Estonia | 5 / 5 |
| Iceland | 5 / 5 |