Log in to get your input and submit your answers.

Day 15: Rambunctious Recitation

To pass the time during an excruciatingly long C++ compilation in the cluster, a group of students in the back row starts playing an old memory and recitation game.

The rules are simple but deceptive. Players take turns speaking numbers aloud (turn 1, turn 2, etc.):

Part 1

You decide to write a simulator to predict the sequence ahead of time and beat everyone at the table.

Example

Consider starting numbers: 0,3,6:

Continuing the game with these starting numbers, the 2026th number spoken would be 175.

Simulate the game using your own starting numbers. What will be the 2026th number spoken?