MathDB
list of numers game

Source: IX May Olympiad (Olimpiada de Mayo) 2003 L1 P4

September 22, 2022
combinatoricsnumber theory

Problem Statement

Celia chooses a number nn and writes the list of natural numbers from 11 to nn: 1,2,3,4,...,n1,n.1, 2, 3, 4, ..., n-1, n. At each step, it changes the list: it copies the first number to the end and deletes the first two. After n1n-1 steps a single number will be written. For example, for n=6n=6 the five steps are: 1,2,3,4,5,63,4,5,6,15,6,1,31,3,55,15 1,2,3,4,5,6 \to 3,4,5,6,1 \to 5,6,1,3 \to 1,3,5 \to 5,1 \to 5 and the number 55 is written. Celia chose a number nn between 10001000 and 30003000 and after n1n-1 steps the number 11 was written. Determine all the values of nn that Celia could have chosen. Justify why those values work, and the others do not.