First of all, I'm sorry if I'll use some game related terms, but that's where the question that bugged me for the last week came from.
Let's say, we have a mana pool of size $M$, and we can cast a spell that costs $n$, with $n < M$. The spell has a probability $p$ to give us $kM$ mana, where both $p$ and $k$ are fixed constants in the interval $[0,1]$.
What is the probability to get mana starved, that means, to end up without enough mana to cast any more instances of our spell after $t$ casts?
edit : as a first ( and simpler ) case, we can assume $M = qn$ with $q \in N , q > 1$ and $kM = pn , p < q$ .