37% is less than 50 percent, which means you only have less than a half chance to last more than 512 days
63% chance to lose all your money before 512 days
by the way when (511/512)^n = 1/2, n is about 354 days
Gambling 511000 at first day has higher chance to last 512 days (50 percent)
If you gamble 56 times, you have about a 90% chance of winning $56,000 while keeping your initial balance of $511,000 intact.
The 90 percent of 511000 is 51100 which is smaller than 56000 so it's rate is higher than a normal condition,but as the more you bet the rate will decrease.You can try down there.
Martingale strategies may work in the short term but are not sustainable for long-term success.
Calculate (511/512)^n for a given number of days