The math looks good, though I didn't check your calculations. There's a problem with it however: it doesn't answer your question: "what is Y?"
We want to know your chance of doubling up using this system. You seem to have 2047 satoshi, since you're able to lose 11 times before busting. So in order to double up, you need to win 2047 times. The probability of winning 2047 sequences in a row is (the probability of winning one sequence) to the power of 2047. The probability of winning one sequence is (1 minus the probability of losing 11 rolls in a row), and the probability of losing 11 rolls in a row is, as you said, 0.525^11.
So Y as a probability (not a percentage) is:
(1 - 0.525^11)^2047 = 0.1808
So Y is 18.08%. Considerably less than 50%, and so it's a losing strategy.
Most Bitcoin games (at least the ones I'm familiar with have a house edge of 1%, and so give you a 49.5% chance of doubling your stake. In that case, Y is:
(1 - 0.505^11)^2047 = 0.3277, or 32.77%
Much better, but still less than 50%.
Interestingly, even with a 0% house edge the chance of doubling up before busting is:
(1 - 0.5**11)**2047 = 0.3679 or 36.79%
This came up recently and surprised me (*). How can it be less than 50% with a 0% house edge?
It turns out the reason is that by the time you lose your 2047 satoshis, you've probably already won a bunch of times, and you get to keep those winnings. So it turns out you're not choosing between doubling up or busting completely, you're choosing between doubling up, and getting left with only however much you were able to win before you hit your big losing streak.
So this makes me think I was wrong here:
No, it's not unusual. It just has to happen less than half the time on average, due to the house edge. Otherwise this simple strategy would be profitable:
* start with X; martingale until doubling; quit
If you successfully double Y% of the time, your expected profit would be:
(Y*X - (100-Y)*X) / 100
= X(2Y - 100) / 100
which is positive exactly when 2Y > 100, ie. when Y > 50%
because I was thinking that there were only two possible outcomes:
a) you double up
b) you lose everything
but by far the most common outcome is:
c) you hit a big losing streak and can't afford to make that last bet, even though you're not bust yet
What this does tell me is that in theory you should find that you are able to double up less than 37% of the time if you stop and call it a loss when you can't afford to double to make your next bet.
(*) Here's where it came up before. I'm talking about a bankroll of 15 instead of 2047, and a house edge of 2.702%, but other than that it's the same issue. I found I doubled up just 38% of the time, busted only 6% of the time, and the rest of the time ended up with from 1 to 14 satoshis:
Lol yeah I totally missed calculating Y - appreciate the response.
Your math makes sense...I didn't realize the long-term probability would be affected so greatly by a slight change in the house edge. It's also surprising to see that the odds are still against you.
I was gambling on a site with 47.5% odds to double your bet...and from 80,000 satoshi I made it up to 2,200,000 before hitting that losing streak. Given our calculations, there seems to be a lot of luck involved there.