MathDB
numbers written on a board

Source: Bulgarian NMO 2017, 3rd round, p2

April 21, 2017
number theorycombinatorics

Problem Statement

Let m>1m>1 be a natural number and N=m2017+1N=m^{2017}+1. On a blackboard, left to right, are written the following numbers: N,Nm,N2m,,2m+1,m+1,1.N, N-m, N-2m,\dots, 2m+1,m+1, 1. On each move, we erase the most left number, written on the board, and all its divisors (if any). This procces continues till all numbers are deleted. Which numbers will be deleted on the last move.