There are 30 children, , seated clockwise in a circle on the floor. The teacher walks behind the children in the clockwise direction with a box of 1000 candies. She drops a candy behind the first child . She then skips one child and drops a candy behind the third child, . Now she skips two children and drops a candy behind the next child, . She continues this way, at each stage skipping one child more than at the preceding stage before dropping a candy behind the next child. How many children will never receive a candy? Justify your answer.
, 2015
Solution
When the candy is dropped, the teacher has skipped children. Then it is dropped behind , where (mod 30). Thus (mod 60). From here it is clear that the and candies are given to the same child if (mod 60). Thus the sequence of children receiving candies is periodic with period 60. Note that . Thus the and are given to the same child. Thus we only need to compute (mod 30) for . This yields the following sequence of children receiving the first 29 candies. Thus 18 children never receive any candy.
1, 3, 6, 10, 15, 21, 28, 6, 15, 25, 6, 18, 1, 15, 30
16, 3, 21, 10, 30, 21, 13, 6, 30, 25, 21, 18, 16, 15
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.