No Consecutive Heads

Probability
Coins
Easy
A fair coin is flipped five times. What is the probability that no two heads occur consecutively?
Hint 1

Model each outcome as a binary string of length five and count the strings with no two adjacent s.

Hint 2

Let count length- binary strings with no adjacent s; build from a recurrence.

Show worked solution
  1. 1. Count valid strings

    Let be the number of length- binary strings with no two adjacent s. These satisfy the Fibonacci-style recurrence with , giving .

  2. 2. Divide by the sample space

    There are equally likely flip sequences, and of them avoid consecutive heads.

Answer: 13/32

Related roles: Browse quant jobs

This problem has 1 interviewer follow-up — unlock them by solving it in Practice.

Related problems