Browse · MathNet
PrintBULGARIAN NATIONAL MATHEMATICAL OLYMPIAD
Bulgaria number theory
Problem
Let be positive integer and . The numbers are written (in that order) on the blackboard. On every move the leftmost number is deleted together with all its divisors (if any). Find the last deleted number.
Solution
Let be the smallest number on the board such that . It is easy to see that . We will prove that is the last deleted number.
The numbers are not on the board since they are not congruent modulo . Therefore can not be deleted as divisor (i.e. before we reach it).
Let is one of the numbers on the board in the beginning. It is enough to prove that there exists a number , which is multiple to and is on the board. Let , for . Since , all numbers are on the board in the beginning. Let be such that . If , then . If , then is divisible by and is on the board in the beginning since it is less than
The numbers are not on the board since they are not congruent modulo . Therefore can not be deleted as divisor (i.e. before we reach it).
Let is one of the numbers on the board in the beginning. It is enough to prove that there exists a number , which is multiple to and is on the board. Let , for . Since , all numbers are on the board in the beginning. Let be such that . If , then . If , then is divisible by and is on the board in the beginning since it is less than
Final answer
(m^{2017} + m^2 + m + 1) / (m + 1)
Techniques
Factorization techniquesInverses mod nColoring schemes, extremal arguments