There are some integers written on the blackboard. In each step two numbers a and b are chosen and replaced with the numbers 3a−b and 13a−3b. If there are numbers 1, 2, 3, 4, …, 2011, 2012 on the blackboard at the beginning, is it possible to get numbers 2, 4, 6, 8, …, 4022, 4024 on the blackboard after a finite number of steps?
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.
In each step the sum of all numbers on the blackboard changes by ((3a−b)+(13a−3b))−(a+b)=15a−5b=5(3a−b). This difference is divisible by 5, i.e. the sum of all numbers written on the board in each step gives the same remainder when divided by 5. At the beginning, the sum of all numbers on the board is 1+2+3+⋯+2012=22012⋅2013=1006⋅2013 and we have 1006⋅2013≡1⋅3≡3(mod5). On the other hand, 2+4+6+⋯+4024=2⋅(1+2+3+⋯+2012)≡2⋅3≡1(mod5). In conclusion, it is impossible to get the numbers 2, 4, 6, …, 4024.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.