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?
Solution
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.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement and solution reproduced as published; topic and difficulty added by this site.