Let
be a positive integer
Suppose
bulbs are arranged in a row. Initially the first bulb is switched on and all other bulbs are switched off. Each second, we change the states of the bulbs according to the following rules:
If the state of a bulb is identical to the state of all its neighbors (one neighbor for the bulbs at the edges, two neighbors for the other bulbs), it is switched off.
Otherwise, it is switched on.
It turns out that eventually (after a finite amount of time) all bulbs are switched on. Find the largest possible value of
Details and assumptions
The state of a bulb refers to whether it is switched on or off.
This problem is inspired by ISL 2006 C1 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Not a full solution, but might help you think about the problem.
The figure clearly shows the half of Sierpinski triangle .
I claim that the bulbs that all light can only be the form of 2 n for some n .
Therefore, the answer should be 5 1 2 . ~~~