MathLabs

Problem 1

Three players AA, BB, and CC play the following game. On each of three cards an integer is written; the three numbers p,q,rp, q, r satisfy 0<p<q<r0 < p < q < r. The three cards are shuffled and one is dealt to each player, and each player receives as many counters as the number on the card they hold. The cards are shuffled and dealt again, and this is repeated for at least two rounds (counters from earlier rounds stay with the players). After the last round, AA has 2020 counters in all, BB has 1010, and CC has 99. In the last round, BB received rr counters. Who received qq counters on the first round?
Step 1 of 6: Total counters fix the number of rounds
In plain words

Counting the same quantity — all the counters ever handed out — two different ways (round by round, and player by player) turns a messy dealing process into a single algebraic equation.

n(p+q+r)=20+10+9=39n(p+q+r)=20+10+9=39
Detailed analysis

Let nn be the number of rounds played. In every round the three players together receive exactly p+q+rp+q+r counters — one card each — so after nn rounds the grand total handed out is n(p+q+r)n(p+q+r). Adding the three final totals gives 20+10+9=3920+10+9=39, so n(p+q+r)=39n(p+q+r)=39.