MathDB
BMT 2021 General Tiebreaker p3

Source:

September 27, 2023
combinatorics

Problem Statement

Dexter and Raquel are playing a game with NN stones. Dexter goes first and takes one stone from the pile. After that, the players alternate turns and can take anywhere from 11 to x+1x + 1 stones from the pile, where xx is the number of stones the other player took on the turn immediately prior. The winner is the one to take the last stone from the pile. Assuming Dexter and Raquel play optimally, compute the number of positive integers N2021N \le 2021 where Dexter wins this game.