MathDB
2008 ToT Spring Junior A P5 99 girls in a circle, each with a candy

Source:

March 7, 2020
combinatorics

Problem Statement

Standing in a circle are 9999 girls, each with a candy. In each move, each girl gives her candy to either neighbour. If a girl receives two candies in the same move, she eats one of them. What is the minimum number of moves after which only one candy remains?