Baltic Way 2025 · Problem 19
Number Theory
There are 100 positive integers written on a blackboard. Anna plays a game. A move consists of choosing two integers and on the blackboard with the property that , erasing them both and writing the integer . She makes moves until there are no more valid moves, at which point the game ends.
Find the largest such that for some initial state Anna can both:
- finish the game with only one number remaining, and
- finish the game with numbers remaining.
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Divisibility and factorization
Solutions
Solution
The answer is .
We solve the more general problem with integers on the blackboard.
Since Anna can reach a state with one integer on the board, there must be a valid first move. Hence a terminal state obtained from the same initial position can contain at most numbers, so
For the reverse inequality, let be distinct primes and put on the board
On the one hand, Anna can make the moves
after which only remains on the board.
On the other hand, Anna can instead begin with
The remaining numbers are
and none of them divides another. Thus the game ends with numbers. Therefore the maximum in the general problem is , and for we get
Remark. There are other constructions. For example, let again be distinct primes and start with
One possible sequence of moves is
continuing in this way until
then
Only remains.
On the other hand, Anna can make the single move
The numbers then left on the board are
none of which divides another.
Contest context
Results from Baltic Way 2025
11 teams
- Mean score
- 4.1 / 5
- Scores of 4 or 5
- 9 / 11
- Estonia
- 5 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Germany | 5 / 5 |
| Estonia | 5 / 5 |
| Poland | 5 / 5 |
| Lithuania | 5 / 5 |
| Norway | 5 / 5 |
| Latvia | 0 / 5 |
| Finland | 5 / 5 |
| Denmark | 5 / 5 |
| Sweden | 5 / 5 |
| Ukraine | 5 / 5 |
| Iceland | 0 / 5 |