Problem

Source: Croatia 1998 4th Grade P4

Tags: combinatorics



Eight bulbs are arranged on a circle. In every step we perform the following operation: We simultaneously switch off all those bulbs whose two neighboring bulbs are in different states, and switch on the other bulbs. Prove that after at most four steps all the bulbs will be switched on.