Baltic Way 2010 · Problem 17
Number Theory
Find all positive integers such that the decimal representation of consists of odd digits only.
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Modular arithmetic
Solutions
Solution
The only such numbers are and . If is even, then so is the last digit of . If is odd and divisible by , then for some integer and the second-to-last digit of equals . Thus we may restrict ourselves to numbers of the form , where . Then
and since , the second-to-last digit of is even unless the number is equal to zero. We therefore have so or . These numbers indeed satisfy the required condition.
Contest context
Results from Baltic Way 2010
10 teams
- Mean score
- 4.5 / 5
- Scores of 4 or 5
- 9 / 10
- Estonia
- 5 / 5
Score distribution
00
11
20
30
41
58
All team scores
| Team | Score |
|---|---|
| Poland | 5 / 5 |
| Lithuania | 5 / 5 |
| Germany | 5 / 5 |
| Latvia | 5 / 5 |
| Denmark | 5 / 5 |
| Sweden | 5 / 5 |
| Estonia | 5 / 5 |
| Norway | 1 / 5 |
| Finland | 5 / 5 |
| Iceland | 4 / 5 |