Expectation · A growing tree · difficulty 4 of 5
How far the newcomer is from the root
A tree grows one node at a time: node 1 is the root, and each new node k attaches to one of the k − 1 earlier nodes uniformly at random. How many links on average separate node 20 from the root? Give a decimal.
Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.
More expected value puzzles
- Counting up with a die · Rolling a die
- Cards between the jokers · A deck with two jokers
- Counting streaks · Coin flips
- Heads and tails both · Coin flips
- Heads, then tails · Flipping a coin
- Letters in the right envelopes · Mail
All expected value puzzles · All puzzles · Market making game