Just calculate simply, if I double 40, I lose. 40 becomes 72, but the previous ones are 5 + 10 + 20 = 35. In the fourth doubling, with 40, I earn 32, yet still lose.