MathDB
Arrangement of ones and zeroes

Source: Moscow Olympiad 2018, Grade 10, P4

July 13, 2018
combinatorics

Problem Statement

We call the arrangement of nn ones and mm zeros around the circle as good, if we can swap neighboring zero and one in such a way that we get an arrangement, that differs from the original by rotation. For what natural mm and nn does a good arrangement exist?