CombinatoricsDifficulty 2.9Prove itJunior Macedonian Mathematical Olympiad · North Macedonia
The numbers 1, 2, …, 2009 are written on a board. Some of them are erased and the remainder of their sum divided with 13 is written on the board. After a finite number of repetition of the above procedure only three numbers have left, two of which are 99 and 999. What is the third number?
This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.