MathDB
Lights in garland

Source: St Petersburg Olympiad 2011, Grade 10, P6

September 15, 2017
combinatorics

Problem Statement

We have garland with nn lights. Some lights are on, some are off. In one move we can take some turned on light (only turned on) and turn off it and also change state of neigbour lights. We want to turn off all lights after some moves.. For what nn is it always possible?