Maths Olympiad Prep

Library / /22 of 48

Combinatorics Difficulty 4.2 AIME Find the answer United States

Problem:
Trevor and Edward play a game in which they take turns adding or removing beans from a pile. On each turn, a player must either add or remove the largest perfect square number of beans that is in the heap. The player who empties the pile wins. For example, if Trevor goes first with a pile of 5 beans, he can either add 4 to make the total 9, or remove 4 to make the total 1, and either way Edward wins by removing all the beans. There is no limit to how large the pile can grow; it just starts with some finite number of beans in it, say fewer than 1000.

Before the game begins, Edward dispatches a spy to find out how many beans will be in the opening pile, call this nn, then "graciously" offers to let Trevor go first. Knowing that the first player is more likely to win, but not knowing nn, Trevor logically but unwisely accepts, and Edward goes on to win the game. Find a number nn less than 1000 that would prompt this scenario, assuming both players are perfect logicians. A correct answer is worth the nearest integer to log2(n4)\log_{2}(n-4) points.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:
The correct answers are 0 (worth imaginary points), 5 (worth 0 points), 20 (4 points), 29, 45 (5 points), 80 (6 points), 101, 116, 135, 145, 165, 173 (7 points), 236, 257 (8 points), 397, 404, 445, 477, 540, 565, 580, 629, 666 (9 points), 836,845,885,909,944836, 845, 885, 909, 944, 949, 954, 975 (10 points). This game is called Epstein's Put-or-Take-a-Square game. It is unknown whether or not these numbers (or the first player's win positions) have positive density.

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.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.