Given a stripe 1×n, n≥4. One wrote a positive integer in each cell of it (the numbers are not obliged to be equal). After under each number one writes a positive integer which is equal to the quantity of such integers in the previous row. (i.e. if 10 was written in the previous row three times then under each of the numbers 10 one writes 3 in the next row). After the procedure repeats.
a) Prove that after a finite number of steps the rows will not change.
b) How long can the next row differ from the previous one if n=2016 and if n is arbitrary?
Solution
Obviously, it is possible to rearrange the numbers in each row so that they increase. Denote the initial row as 0th, the next - 1st and so on.
Let us describe the properties of the numbers inside rows beginning from the 1st one.
Lemma 1. If n occur in k th row, then the amount of numbers "n" is divisible by n.
Proof. Number n occurs in the 1st row if there are n equal numbers in the 0th row, say m. Then under these n numbers "m" one writes a group of numbers n. If another number l in the 0th row occurs n times too, then a new group which contains n numbers equal to n will emerge in the 1st row. The number n may occur in the rows after 1st one if there were numbers n in the previous row and one wrote n under them once again or there was a group of exactly n equal numbers different from n. Hence, their amount is divisible by n.
Lemma 2. If there is a group of numbers "n" in the k th row then the same number will be written under these numbers but this number is not obliged to be equal to n.
Proof. It is an easy consequence of the property that if in the previous row there were two equal numbers then under them one should write the same numbers too.
Consider the first row. Let l be the smallest number inside it. That means the amount of the numbers "l" will be equal to sl, s≥1. The other numbers are greater than l.
If l occur exactly l times, then under them only one can write only numbers l. They cannot decrease since there are exactly l of them and they cannot increase because in this case we need l equal numbers but there is no such group. So we can erase these numbers and consider a row with n−l numbers. Now we can look for the smallest number in the new row.
If there is a group of l consisting of sl numbers, s>1, then in the next group one has to write sl under them. Consider some m in the 1st row such that: l<m<2l. Analogously, if there are exactly m of them then they cannot change in the lower rows. The numbers which are less then m either do not change (and does not impact on the changes of the numbers m) or at least two times increase, so m cannot occur under them. So we can ignore such numbers. If there are tm of them then they are replaced by tm in the consecutive rows.
Hence in the 2nd row we need only consider the numbers which are greater or equal to 2l.
Analogously, if the least number in the 2nd row is l2 (among the numbers which we need to consider), then in the 3rd row the least such number will be at least 2l2 and so on.
It is easy to see that a number greater then n cannot emerge in the rows. So the greatest possible number of steps is k, for which 2k≤n. But we have to count the move from 0th to 1st row. So at most we can have k+1 steps.
Let the 0th row has the following appearance: (n−1),(1),(2,2),(4,4,4),…,2k−1(2k−1,2k−1,…,2k−1),m(m,m,…,m) (0th row)
(1,1),(2,2),(4,4,4),…,2k−1(2k−1,2k−1,…,2k−1),m(m,m,…,m) (1st row) (2,2,2,2),(4,4,4,4),…,2k−1(2k−1,2k−1,…,2k−1),m(m,m,…,m) (2nd row) (4,4,4,4,4,4,4),…,2k−1(2k−1,2k−1,…,2k−1),m(m,m,…,m) (3rd row) (2 k-1 , 2 k-1 , , 2 k-1 ) 2 k , (m, m, , m) m (k-1 th row) (2 k, 2 k, , 2 k) 2 k , (m, m, , m) m (k th row)
Now let us understand why the condition m=2k−n=2i is important. If there is a group consisting of 2i then there is a group of the numbers 2i, which will give a group of 2i+1 in the next row. So in the described process the numbers change as: 20→21→22→⋯→2i, in the next step the numbers will not change and the changes will last shorter.
For instance if there are 5 numbers in the beginning then we will have the following estimates: 22=4<5, so the answer is at most 3 steps. But if we consider the 0th row as 1; 4; 2; 2; 5 we will get the following 1st row: 1; 1; 2; 2; 1, 2nd row: 3; 3; 2; 2; 3. The same situation is if n=2s+1.
Analogously if n=2s+2, because in this case either a group of two equal numbers will emerge or there will be two distinct numbers in the 0th row. The last case when we cannot increase the amount of numbers - n=2s+4. Here we have that if 4 decomposed into several integer summands then one of this summands would be equal to some power of 2. In this case there will emerge a group of three one's in the first row. So we do not need 2k≤n, but 3⋅2k−1≤n. Now we are going to determine for which n it is possible. 3⋅2k−1≤n=2k+4. Then 2k−1≤4, or k≤3. So for n=5, n=6 and n=12. For n=5 we have already seen that it is impossible, for n=6 we have the following situation in 0th row: 1;2;2;2;5;6→1;3;3;3;1;1→3;3;3;3;3;3→6;6;6;6;6;6, Analogously if n=12.
In case of 2i≥8 it suffices to take instead of (mm,m,...,m) in the basic example two groups: (ss,s,...,s) and (tt,t,...,t), where s=2i−1−1 and t=2i−1+1, which will not change during the whole procedure and will not interfere with the basic example.
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 reproduced verbatim; metadata (topic, difficulty) added by this project.