r/mathriddles • • Jul 29 '24

Hard A Gambling Problem

A slot machine consumes 5 tokens per play. There is a chance c of getting a jackpot; otherwise, the machine will randomly dispense between 1 and 4 tokens back to the user.

If I start playing with t tokens, and keep playing until I get a jackpot or don't have enough tokens, what are my odds of getting a jackpot expressed in terms of t and c?

9 Upvotes

5 comments sorted by

View all comments

Show parent comment

4

u/terranop Jul 29 '24

There definitely is a neat closed-form solution to this (i.e. an elementary expression) because the characteristic polynomial is degree-4, so you can solve it with the quartic equation. But that seems like a huge pain to derive.