Skip to main content
OlympiadHQ

Browse · MathNet

Print

BMO Short List

number theory

Problem

A number of children are at a party, and they sit in a circle to play a game of Pass the Parcel. Because the host has no other form of entertainment, the parcel has infinitely many layers. On turn , starting with , the following two things happen in order: (1) The parcel is passed positions clockwise; and (2) The child currently holding the parcel unwraps a layer and claims the prize inside. For what values of will every child receive a prize?
Solution
Every child receives a prize if and only if for some non-negative integers and . For convenience, say is good if every child receives a prize.

Number the children clockwise around the circle, child number starting with the parcel. After turns, the parcel will have been passed places around the circle. For convenience, write . Thus, child receives the parcel, and hence a prize, if and only if for some , so is good if and only if assumes every possible value modulo .

To rule out the case where is divisible by a prime , it is sufficient to show that misses some value modulo . The latter follows from the fact that has a multiplicative inverse modulo , and if or , so assumes at most values modulo . Consequently, such an is certainly not good.

We now show that each of the form is good. We do this by showing that, if is good, then so are both and ; since is clearly good, this is sufficient to prove goodness of inductively on .

To show that, if is good, then so is , refer to goodness of the former to infer that, for each modulo , there exists an such that . Clearly, only the case is to be dealt with. In this case, Consequently, is indeed good.

To show that, if is good, then so is , refer again to goodness of the former to infer that, for each modulo , there exists an such that or . Clearly, only the last two cases are to be dealt with. In the former case, and in the latter, Consequently, is indeed good.
Final answer
All N of the form 2^a 3^b for non-negative integers a and b

Techniques

Polynomials mod pSums and productsInduction / smoothingPrime numbers