Cyclic token-passing numbers with pattern 121: players 1, 2, ..., n are seated around a table. Each has a penny. Player 1 passes a penny to player 2, who passes two pennies to player 3, who passes a penny to player 4. Player 4 passes a penny to player 5, who passes two pennies to player 6, who passes a penny to player 7 and so on, players passing 1,2,1,1,2,1,... pennies to the next player who still has some pennies. A player who runs out of pennies drops out of the game and leaves the table. Sequence gives number of players remaining when game reaches periodic state.

A060447

Cyclic token-passing numbers with pattern 121: players 1, 2, ..., n are seated around a table. Each has a penny. Player 1 passes a penny to player 2, who passes two pennies to player 3, who passes a penny to player 4. Player 4 passes a penny to player 5, who passes two pennies to player 6, who passes a penny to player 7 and so on, players passing 1,2,1,1,2,1,... pennies to the next player who still has some pennies. A player who runs out of pennies drops out of the game and leaves the table. Sequence gives number of players remaining when game reaches periodic state.

Terms

    a(0) =1a(1) =1a(2) =1a(3) =2a(4) =2a(5) =2a(6) =2a(7) =2a(8) =2a(9) =4a(10) =4a(11) =2a(12) =5a(13) =5a(14) =4a(15) =4a(16) =4a(17) =4a(18) =4a(19) =4a(20) =8a(21) =5a(22) =8a(23) =8a(24) =5a(25) =5a(26) =8a(27) =7a(28) =7a(29) =7

External references