Problem:
At a lunch, people have been invited, who will sit around a round table, whose places have been marked from 1 to by means of suitable name-tags, distributed by a master of ceremonies.
The waiter has decided to serve the courses following an original procedure: he chooses a guest, serves him, then moves counterclockwise by a number of places equal to the number on the name-tag of the guest just served, serves the guest at the place where he now finds himself, and so on, always moving counterclockwise according to the number on the name-tag of the last guest served.
Determine for which the master of ceremonies can arrange the name-tags in such a way that the waiter can, starting from a suitable guest and following the procedure described, serve all the diners.
Solution
Solution:
It is possible to arrange the name-tags in the desired way if and only if is even.
If is even, one possible solution is the following: proceeding clockwise along the table, the master of ceremonies first places name-tag number , then all the even ones in increasing order, and then all the odd ones in increasing order. If now the waiter starts from name-tag and follows the rule, he goes around the whole table. Indeed, one checks that after having served an odd number , the waiter goes to number , which is even, and then to number , which is again odd.
The waiter's path will therefore be as follows: , and so on, ending the path by serving number .
We now show that if is odd, then there is no arrangement of the name-tags that works. Suppose indeed that such an arrangement exists, and that the waiter completes the table by serving, in order, the numbers . Then , since if he were to continue after having served number , the waiter would have to make a complete lap of the table and thus return to the same place. But then the sum of the preceding numbers is
which is a multiple of . It follows that after having served the first guests, the waiter has returned to the starting point, and thus he will never serve number .