Problem

Source: Kosovo MO 2014 Grade 9, Problem 4

Tags: combinatorics



The number $2015$ has been written in the table. Two friends play this game: In the table they write the difference of the number in the table and one of its factors. The game is lost by the one who reaches $0$. Which of the two can secure victory?