Puzzles · Logic · Hard
The 15 pebbles
Two players put 15 pebbles between them. They take turns removing one, two or three pebbles. When all are gone, the player holding an odd number of pebbles wins. How many pebbles should the first player take on his first turn to be sure of winning?
Posted on r/puzzles · Nov 25, 2026 · 66 upvotes · 122 comments
The answer
Give it a real try first. Tap the box when you're ready.
Take 2.
Work backwards from the end. The player about to move loses if they hold an even number with 0, 5, 8 or 13 pebbles left, or an odd number with 1, 4, 9 or 12 left. From any other position there's a move into one of those.
Taking 2 leaves your opponent holding 0 (even) with 13 left, which is a losing position. You can then keep handing them losing positions until the end. Taking 1 or 3 leaves 14 or 12, and both let your opponent win.
What Reddit said
The comments give the answer away, so this is hidden too.
- Read it twice. u/longtermcontract warned that the goal is to hold an odd number, not leave one on the table. u/Ruzihm misread it the same way and paid up with a limerick about pebbles.
- Building from small games. u/Vromikos solved 1, 3, 5 and 7 pebbles first and worked up.
- Meta-gaming. u/HeDoesNotRow reasoned it would be a bad puzzle if two of the three moves won, so the answer must be the odd one out.
- A correction. u/helpful_dave suggested leaving the opponent 5, and we agreed too quickly. u/Mamuschkaa showed it fails. We then posted the full list of losing positions.
- Why not 3? We answered u/sparrowhawk73: taking 3 leaves 12, and the opponent can play it so you finish holding an even number.