Maths Olympiad Prep

Track / Stage 6 / 324 of 400 #1804 of 2444

Problem 1804

National Olympiad, first round
Combinatorics Difficulty 6.8 Prove it Progetto Olimpiadi di Matematica GARA di SECONDO LIVELLO · Italy · 2006

On the blackboard there is written a 17-digit number made up only of 1s and 2s. Paolo comes in and rewrites the number in reverse order, lining it up under the previous one. Gianni comes in and writes under each column the maximum digit that appears in that column. Alberto comes in and writes under each column the minimum digit that appears in that column, then erases the first two rows. Carla comes in and finds written the numbers 12212212221221221 and 11211111211111211, and is told what Paolo, Gianni, and Alberto did. How many different numbers could have been written on the blackboard as the first 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.

Next problem →

Official solution

Solution:

The answer is 1616. Before Alberto erases the first two rows, in column kk (k=1,,17k=1, \ldots, 17) there appear the digit in position kk, the digit in the symmetric position 17(k1)17-(k-1), the maximum between the two, the minimum between the two. When the maximum and the minimum coincide, the digit in position kk and the digit in the symmetric position 17(k1)17-(k-1) are equal. This happens in columns 1,3,4,71, 3, 4, 7, necessarily in column 99, then symmetrically in positions 11,14,15,1711, 14, 15, 17. In these positions the digits are certainly 1,2,1,1,2,1,1,2,11, 2, 1, 1, 2, 1, 1, 2, 1, respectively. In the other pairs of symmetric positions, they are 11 in one and 22 in the other. Therefore the numbers that could have given rise to the two rows that Carla finds on the blackboard were 24=162^{4}=16.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty, ordering) added by this project.