MathDB
2014 CHMMC Tiebreaker 3 - 2 players- game on a pile of n beans

Source:

March 1, 2024
combinatoricsnumber theoryCHMMC

Problem Statement

Two players play a game on a pile of nn beans. On each player's turn, they may take exactly 11, 44, or 77 beans from the pile. One player goes first, and then the players alternate until somebody wins. A player wins when they take the last bean from the pile. For how many nn between 20142014 and 20502050 (inclusive) does the second player win?