I started with the Monte-Carlo simulation, generating a random number between 1 and 37 (inclusive), millions of times, and noting where the LN(bankroll) reaches the maximum. That works, but it converges slowly, and is not precise.
Then SplawnDarts suggested a much better solution, which does...