Numbers are written in a row (in this order). Igor and Ruslan take turns in making moves; Igor starts; by one move the player puts one of the signs of operation , , between some pair of adjacent numbers. When a sign is placed between every two adjacent numbers we calculate the value of the obtained expression. Igor wins if this value is divisible by , otherwise Ruslan wins. Determine who of the two players has a winning strategy.
Solution
Let us replace all numbers in the sequence with their remainders modulo ; this will not change the game's outcome.
We obtain the sequence . The gaps between the numbers are numbered from left to right from to .
On his first move, Igor places a "" sign in the th gap, while pairing all other gaps as . If Ruslan places a "" or "" sign in some gap, Igor responds by placing a "" or "" sign, respectively, in the paired gap. If Ruslan places a "" sign, Igor also places a "" sign in the paired gap.
Once all signs are placed, the resulting expression splits into several terms. The sets of terms in the left and right halves of the expression are identical but have opposite signs. Consequently, the expression's value will be congruent to modulo .
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.