DISK 04 / THE FIELD MANUAL
The important
numbers are four apart.
You take turns adding 1, 2, or 3 to a running total. Say 21, and you lose.
Why the computer goes first
From zero, the first player cannot force a win against perfect play. That's why the computer starts: you have a chance, but you have to find the pattern.
The trick
If you can leave the count at 4, 8, 12, 16, and 20 after your turns, the computer eventually has no choice but to say 21. Whatever it adds, you can add enough to make the two moves total four.
Why it's mean
From a winning position, the computer will always find the move that leaves you a losing one. When it's already in trouble, it still has to pick something. It doesn't cheat or change the rules.