MathDB
2001 BAMO p4 kingdom of 12 cities in circle, magician 13th every month

Source:

August 26, 2019
combinatorial geometrycombinatoricscircle

Problem Statement

A kingdom consists of 1212 cities located on a one-way circular road. A magician comes on the 1313th of every month to cast spells. He starts at the city which was the 5th down the road from the one that he started at during the last month (for example, if the cities are numbered 1121–12 clockwise, and the direction of travel is clockwise, and he started at city #99 last month, he will start at city #22 this month). At each city that he visits, the magician casts a spell if the city is not already under the spell, and then moves on to the next city. If he arrives at a city which is already under the spell, then he removes the spell from this city, and leaves the kingdom until the next month. Last Thanksgiving the capital city was free of the spell. Prove that it will be free of the spell this Thanksgiving as well.