Browse · MathNet
PrintCroatian Mathematical Society Competitions
Croatia counting and probability
Problem
299 zeros and one one are written circular. The following moves are allowed: You can select all numbers simultaneously and subtract both of its neighbouring numbers from each number. You can select two numbers such that there are exactly two numbers between them, and either increase both selected numbers by 1 or decrease both of them by 1. Can we obtain through a finite number of moves that the following numbers are written circular: a) two consecutive ones and 298 zeros? b) three consecutive ones and 297 zeros?
Solution
Let us analyse how the moves affect certain sums. Denote by the numbers written at a certain moment, so that is the number written in the place where the one was written before any move was made, and are the numbers written clockwise from . After applying the first type of move, the numbers written are
a) Observe how the sum of all written numbers changes after each move. If the total sum of numbers is then the sum of numbers is because each is added once and subtracted twice.
After the second type of move is applied, the sum of all numbers is either or . We can conclude that none of the allowed moves changes the parity of the sum of all numbers. Since the sum is 1 (an odd number) in the beginning, we cannot obtain two ones and 298 zeros since their sum is 2 (an even number).
b) Observe how the moves affect the alternating sum. If the alternating sum of numbers is then after applying the first type of move, the alternating sum of numbers is while the alternating sum remains after applying the second type of move. Assume that three consecutive ones and 297 zeros can be obtained. The original alternating sum before any move is made equals 1. When three consecutive ones and 297 zeros are written circular, the alternating sum is either 1 or -1, depending on where the ones are located. Since the allowed moves either triple the alternating sum or they do not affect it, we conclude that the three ones are located so that the alternating sum is 1, and no moves of the first type were allowed.
Observe the sum of numbers in places 3, 6, ..., 300, i.e. Originally, this sum is 0, and when three consecutive ones and 297 zeros are written, that sum is 1. However, applying only the second type of move does not change the parity of that sum. Namely, either none of the numbers are changed, or we change exactly two of them by exactly 1, changing by 2 or -2. Since 0 and 1 are of different parity, this shows that we cannot obtain three consecutive ones and 297 zeros.
a) Observe how the sum of all written numbers changes after each move. If the total sum of numbers is then the sum of numbers is because each is added once and subtracted twice.
After the second type of move is applied, the sum of all numbers is either or . We can conclude that none of the allowed moves changes the parity of the sum of all numbers. Since the sum is 1 (an odd number) in the beginning, we cannot obtain two ones and 298 zeros since their sum is 2 (an even number).
b) Observe how the moves affect the alternating sum. If the alternating sum of numbers is then after applying the first type of move, the alternating sum of numbers is while the alternating sum remains after applying the second type of move. Assume that three consecutive ones and 297 zeros can be obtained. The original alternating sum before any move is made equals 1. When three consecutive ones and 297 zeros are written circular, the alternating sum is either 1 or -1, depending on where the ones are located. Since the allowed moves either triple the alternating sum or they do not affect it, we conclude that the three ones are located so that the alternating sum is 1, and no moves of the first type were allowed.
Observe the sum of numbers in places 3, 6, ..., 300, i.e. Originally, this sum is 0, and when three consecutive ones and 297 zeros are written, that sum is 1. However, applying only the second type of move does not change the parity of that sum. Namely, either none of the numbers are changed, or we change exactly two of them by exactly 1, changing by 2 or -2. Since 0 and 1 are of different parity, this shows that we cannot obtain three consecutive ones and 297 zeros.
Final answer
a) No; b) No
Techniques
Invariants / monovariantsColoring schemes, extremal arguments