Question 136
Let $m \gt 2017$ be a positive integer and $N = m^{2017} + 1$. The numbers $N, N-m, N-2m, \dots, m+1, 1$ 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.