A frog on lily pads, an ant on a cube, a gambler with a few dollars left: when the future depends only on where you are now, the question becomes a small system of equations. These puzzles train first-step analysis, absorption probabilities and expected hitting times, each checked by simulation.
What these puzzles practice
First-step analysis
Absorption probabilities
Expected hitting times
50 puzzles, easiest first
Waiting for the ball· A game of catch · difficulty 1 of 56 friends play catch. Whoever has the ball throws it to one of the other 6 − 1 players at random. You don't have it now. How many throws,…
Climbing with an edge· A winning streak · difficulty 2 of 5You win a dollar with probability 0.6 and lose one otherwise, each round. Starting from 0 with unlimited credit, how many rounds on…
From one spoke to another· A hub with spokes · difficulty 2 of 5A bug sits at the end of one of 5 spokes that meet at a hub. Each minute it walks to a neighboring point at random: from a spoke's end the…
Playing until you're broke· A casino · difficulty 2 of 5You bring 20 dollars to a casino and bet 1 dollar at a time on a game you win with probability 0.47 (paying even money). You play until…
Rainy days in the long run· Weather · difficulty 2 of 5In a town, a sunny day is followed by another sunny day with chance 0.8, and a rainy day by another rainy day with chance 0.6; otherwise…
The spider heads home· A spider's web · difficulty 2 of 5A web has a hub joined to 8 points on a rim, and the rim points are joined in a circle. A spider on the rim takes one of the 3 threads at…
The wandering rook· A rook on a chessboard · difficulty 2 of 5A rook starts in a corner of an empty 8 × 8 board. Each move, it jumps to any other square in its row or column, chosen at random. What is…
A match with draws· A chess match · difficulty 3 of 5Two evenly matched players keep a running score. Each game is a draw with probability 50%, otherwise each player wins it with equal…
Back to the corner of the grid· A city grid · difficulty 3 of 5A tourist starts at the corner of a city grid of 4 × 5 intersections. At every intersection they take one of the streets there at random.…
Back to the ground floor· A wandering elevator · difficulty 3 of 5An elevator serves floors 0 to 5. Each minute it moves one floor up or down at random; at floor 0 it must go up and at floor 5 it must go…
Back to the start corner· An ant on a wire cube · difficulty 3 of 5An ant walks at random along the edges of a 3-dimensional wire cube, one edge a second, each edge at its corner equally likely. It starts…
Do you land on that square?· A board game · difficulty 3 of 5You start on square 0 and move forward by the roll of a die each turn. What is the probability that you land exactly on square 10 at some…
Far out before coming home· A fair walk · difficulty 3 of 5A fair random walk starts at 0 and steps ±1 each second. What is the probability that it reaches +5 before it first returns to 0?
How far a rumor spreads· A rumor · difficulty 3 of 5Someone starts a rumor. Each person who hears it passes it on to 2 new people with probability 30%, and to nobody otherwise,…
How often you're back to even· A fair coin game · difficulty 3 of 5You and a friend flip a fair coin 20 times, and you win a point on heads and lose one on tails. How many times, on average, is the score…
Landing exactly on the stone· A frog on stepping stones · difficulty 3 of 5A frog starts on stone 0 of a long row and jumps forward 1 or 2 stones at a time, each with chance 1/2. What is the chance it lands on…
Meeting everyone at the party· A party · difficulty 3 of 5At a party of 10 guests, you start talking to someone. Every few minutes you move on to another guest, chosen uniformly at random from…
One head ahead· A biased coin · difficulty 3 of 5A coin lands heads with chance 0.6. You flip it until, for the first time, you've seen one more head than tails. What is the expected…
Rolling past the finish· A board game · difficulty 3 of 5On a board game you start at square 0 and move forward by the roll of a fair die each turn. The game ends when you reach or pass square…
Sixes, wiped out by a one· A dice game · difficulty 3 of 5You roll a die over and over, collecting sixes. Rolling a 1 wipes out every six you've collected. You stop once you hold 2 sixes. How many…
The ant on the cube· An ant on a wire cube · difficulty 3 of 5An ant sits on one corner of a 3-dimensional wire cube (k = 3 is the ordinary cube; k = 2 is a square). Each second it walks along one of…
The ant on the icosahedron· An icosahedron · difficulty 3 of 5An ant walks along the edges of an icosahedron (12 corners, 5 edges at each). At every corner it picks one of the 5 edges at random. How…
The frog jumps ahead· Lily pads · difficulty 3 of 5A frog sits on the bank. In front of it are 10 lily pads in a row, then the far bank counts as pad 10. Each jump, it picks one of the pads…
The same face, three times running· Rolling a die · difficulty 3 of 5You roll an 6-sided die until the same face comes up 3 times in a row (any face). How many rolls do you make on average?
The wandering king· A king on a chessboard · difficulty 3 of 5A king starts in a corner of an empty 8 × 8 board. Each move, it steps to one of the squares around it, chosen at random among those on…
Two sixes in a row· Dice · difficulty 3 of 5You roll a fair 6-sided die until you roll its top face twice in a row. What is the expected number of rolls?
Until it rains again· Weather · difficulty 3 of 5A sunny day is followed by another sunny day with chance 0.8, and a rainy day by another rainy day with chance 0.6. Today it's raining.…
Waiting for a three-flip pattern· Coin flips · difficulty 3 of 5You flip a fair coin until the pattern HTH appears in three consecutive flips. What is the expected number of flips?
Walking away from a wall· A walk along a corridor · difficulty 3 of 5You stand with your back to a wall at the end of a corridor. Each second you take a step: from the wall you can only step away from it;…
Winning from deuce· Tennis · difficulty 3 of 5In tennis, from deuce a player must win two points in a row more than the opponent to take the game: win the next two and you win, lose…
A board with one slide· A board game · difficulty 4 of 5On a board of squares 0 to 20, you start on 0 and roll a die each turn, moving forward that many squares. Landing exactly on square 12…
Across the ladder· A ladder of rungs · difficulty 4 of 5A ladder has 4 rungs; each rung joins a left and a right post point, and the post points are joined to the ones above and below. A beetle…
All in one box again· Balls in two boxes · difficulty 4 of 56 numbered balls start in box A; box B is empty. Each second a ball is chosen at random (each of the 6 equally likely) and moved to the…
Down to a leaf of the tree· A branching tree · difficulty 4 of 5A squirrel starts at the root of a full binary tree 5 levels deep. At each branch point it moves to one of the neighboring points at…
Holding serve· Tennis · difficulty 4 of 5A tennis game is won by the first player to win 4 points with a lead of at least 2 (from 3–3, deuce, someone must get two clear). The…
How often you pass the start· A walk between two cliffs · difficulty 4 of 5A walker starts at point 3 on a path from 0 to 10 and steps left or right at random each second, stopping when it reaches 0 or 10.…
Never back to even· A fair coin game · difficulty 4 of 5You win a point for each head and lose one for each tail of a fair coin. What is the chance that in 10 flips the score is never back to…
Shuffling one card at a time· A deck of cards · difficulty 4 of 5You shuffle a deck of 52 cards by repeatedly taking the top card and putting it back at a uniformly random position (any of the 52 spots,…
The fly on the dodecahedron· A dodecahedron · difficulty 4 of 5A fly walks along the edges of a dodecahedron (20 corners, 3 edges at each). At every corner it picks one of the 3 edges at random. How…
The king crosses the board· A king on a board · difficulty 4 of 5A king starts in one corner of a 4 × 4 board and makes random legal moves, each equally likely. How many moves on average until it first…
The last number on the clock· A bug on a clock face · difficulty 4 of 5A bug starts at the top of a clock face with 12 equally spaced positions. Each second it moves one position clockwise or anticlockwise,…
The mouse and the cheese· A mouse in a grid maze · difficulty 4 of 5A maze is a 3 × 3 grid of rooms, with doors between rooms that share a wall. A mouse starts in one corner room and the cheese is in the…
The wandering knight· A knight on a chessboard · difficulty 4 of 5A knight starts in a corner of an empty 8 × 8 board. Each move, it picks one of its legal knight moves at random. What is the expected…
Two ants on a ring· A circular track · difficulty 4 of 5Two ants sit 6 spots apart on a ring of 12 spots. Every second both move one spot, each clockwise or anticlockwise at random,…
Visiting both ends of the hall· A long hallway · difficulty 4 of 5A robot sits at spot 4 of a hallway with spots 0 to 10. Each second it moves one spot left or right at random (at an end it must step back…
Visiting every hour· A bug on a clock face · difficulty 4 of 5A bug starts at the top of a clock face with 12 equally spaced positions. Each second it moves one position clockwise or anticlockwise…
Will a losing walk ever get ahead?· A biased walk · difficulty 4 of 5A walk starts at 0 and steps up 1 with probability 0.4 or down 1 otherwise, forever. What is the probability that it ever reaches +1?
Will the family name die out?· A family tree · difficulty 4 of 5Each person in a family line has 0 children with probability 25%, 2 children with probability 50%, and otherwise 1 child, independently.…
Does the mutant take over?· A population model · difficulty 5 of 5A population always has 10 individuals. One is a mutant; the rest are normal. Each step, one individual reproduces, with mutants 1.5 times…
Three players, one goes broke· A chip game · difficulty 5 of 5Three players hold 3, 4 and 5 chips. Each round, two of them are picked at random, flip a fair coin, and the loser hands the winner one…