Olympiad Maths Prep

Library / /36 of 45

Combinatorics Difficulty 6.7 National olympiad Prove it Ukraine

There are n3n \ge 3 children standing in a circle, each of them has two cards, one with the digit 00 and the other with the digit 11. At a certain moment, each child raises one of their cards at their discretion. Then every minute, each child whose card number is different from the numbers on both of their neighbors' cards (on the left and on the right) changes their card. Can the situation last indefinitely, when at least one child changes their card?

Solution

For even nn, at the beginning, the kids flip every other sign, starting with 00 and 11. Then, every minute, they continue to flip the signs alternately, and this will go on forever.

For odd nn, such a distribution is not possible. If two identical digits are next to each other, they will remain so forever. Such signs are called *stable*. All unstable signs change every minute. Let's consider any group of stable digits that are next to each other. We also consider the group of unstable signs that are next to the stable group. It consists of digits that alternate: 01010-1-0-1-\dots (or in a different order). Such a group is adjacent to a stable group on each side, and therefore loses two end elements that are added to the stable group. Thus, all unstable groups will disappear after some time, and the process will stop.

Looking for a route rather than 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.