Browse · MathNet
PrintTeam Selection Test
Turkey counting and probability
Problem
boxes are placed around a circle. At the first step we choose some boxes. At the second step for each chosen box we put a ball into the chosen box and into each of its two neighbouring boxes. Find the total number of possible distinct ball distributions which can be obtained in this way. (All balls are identical.)
Solution
The answer is for and for . The number of possible box choices is . Let us examine cases when two or more different choices produce the same ball distribution. If different choices and produce the same distribution then these choices should not coincide on any two consecutive boxes. Otherwise and will coincide for all remaining boxes. Suppose that the boxes are numbered in clockwise order as and the sum is defined in (mod ). If in choice box is chosen we write , otherwise we write . Thus, for two consecutive boxes there are four possibilities . Note that if , and , then and can not produce the same distribution, since box will contain different number of balls for and . for these two choices. Therefore, there are at most three pairwise different choices producing the same distribution. It can be readily shown that if is a multiple of then there are only two triples producing the same distribution: In each of this two cases each choice can be obtained by shifting of any other one. Evidently if is not a multiple of there is no any such triple.
Now let us examine the cases when exactly two choices produce the same distribution. Note that for and there are two consecutive boxes and such that and . Otherwise for some we have , , , ... and consecutively will coincide with . W.L.O.G. let , and , . Then we get , where is either or . Similarly, , and , . Then we get , where is either or . Continuing this way we get that starting from box the choices and are ... and ,... respectively. If is not multiple of then we can not cyclically close this chain and will get a contradiction. Thus, if is not a multiple of there are no different choices producing the same distribution and the answer is . If is a multiple of then the positions of can be determined in ways. If for some choice ... then we get one of the six choices from (1) and (2). Therefore, for each of choices there exists exactly one other choice producing the same distribution. Therefore, the answer is
Now let us examine the cases when exactly two choices produce the same distribution. Note that for and there are two consecutive boxes and such that and . Otherwise for some we have , , , ... and consecutively will coincide with . W.L.O.G. let , and , . Then we get , where is either or . Similarly, , and , . Then we get , where is either or . Continuing this way we get that starting from box the choices and are ... and ,... respectively. If is not multiple of then we can not cyclically close this chain and will get a contradiction. Thus, if is not a multiple of there are no different choices producing the same distribution and the answer is . If is a multiple of then the positions of can be determined in ways. If for some choice ... then we get one of the six choices from (1) and (2). Therefore, for each of choices there exists exactly one other choice producing the same distribution. Therefore, the answer is
Final answer
2^n if 3 does not divide n; 2^n - 3·2^{n/3} + 2 if 3 divides n
Techniques
Enumeration with symmetryRecursion, bijection