Qm

Non-red gumballs score points until a red one

A gumball machine gives a red gumball with probability 14\tfrac14 each time, independently. You keep buying gumballs until you get a red one, then stop. For each non-red gumball you got before the red one, you flip a fair coin and score 00 points on tails or 88 points on heads.

What total score should you expect?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Heads earn card draws until the first tailA random number of customers, each an average spendA cat's nightly catch of miceChildren and grandchildren in a random family treeClaims in a quiet or busy month, each with a cost
All questions →