Data set: Passing pebbles (Medium)
Passing pebbles
Four children, A, B, C and D, start a game with 11, 7, 4 and 2 pebbles respectively. The game is played in rounds. In each round, the child holding the most pebbles gives one pebble to each of the other three children. If two or more children are tied for the most, the one who comes first in alphabetical order gives.
How many pebbles does D hold after round 50?
Type in the answer (TITA): no options.
Show answer & solution
Correct answer: 8
Solution: Holdings (A, B, C, D) after each round: start (11, 7, 4, 2); round 1, A gives: (8, 8, 5, 3); round 2, A gives (tie with B, A first): (5, 9, 6, 4); round 3, B gives: (6, 6, 7, 5); round 4, C gives: (7, 7, 4, 6); round 5, A gives: (4, 8, 5, 7); round 6, B gives: (5, 5, 6, 8); round 7, D gives: (6, 6, 7, 5) — the same as after round 3. So from round 3 on the holdings repeat every 4 rounds, with givers C, A, B, D in rounds 4, 5, 6, 7, then 8, 9, 10, 11, and so on. After round r (r ≥ 3) the holdings depend on r mod 4: 50 leaves remainder 2, the same as round 6, so D holds 8.