OK, I understand how it works now. I couldn't come up with any kind of easy formula to represent the chances of the sequence "ending" (resulting in 0 additional calls), so I wrote out most of the first 6 iterations of the cycle onto a spreadsheet. Each row represents one possible iteration of equal likelihood, and each column represents an "iteration" (a new cycle after all of the previous cycles have borne out). For example, in Iteration 2, there are 16 scenarios where there are 2 skill usages, and 16 where there are 0. In Iteration 3, all of the 0's will also result in 0's, whereas the 2's can either succeed twice to create 4 (1/4 chance so 4 scenarios), succeed once to create 2 (1/2 chance so 8 scenarios), or succeed no times to create 0 (1/4 chance so 4 scenarios). And so on. Where the chances where getting very granular (less than 1/32), I represented them with multiple comma-delineated numbers; where they were even more granular, I used ~X to denote the average number of skill usages.
One takeaway is that after 6 iterations, the average number of skill usages across all scenarios is 6. This is consistent with St. Petersburg's Paradox: the average after X iterations will be X, and therefore (although it's fairly likely a
single trial will end early) the average number of times the skill will be used is actually infinitely high.
As far as how to figure out what are the chances that the skill will be used N times, I don't see an easy way to do it. A math genius might be able to figure it out. I think it has something to do with the increasing chance throughout each iteration that a 0 will be hit - it's 50% in two iterations (16 out of 32), 62.5% in three iterations (20 out of 32), 69.53% in four iterations (22.25 out of 32), and so on. I can't find an easy curve to fit the probabilities. It does seem, however, like the amount that the % increases from one step to another is slightly greater than half of the % from the step before (e.g. 12.5% increase from I2 to I3; 7.03% increase from I3 to I4; probably around 3.7% increase from I4 to I5).
However, what you
can figure out from this chart is the probabilities of any number of skill usages up to 7, represented by the number of times that appears in the final column divided by 32. Everything above the 7 row is an average of some sort, with the top few rows and some highly-lucky branches of the mid-high rows growing to
very large numbers
.