A roulette player had a system of playing one dollar 7 times, red or black, then 7 dollars 7 times, red or black, then 49 dollars 7 times, red or black, etc., each time 7 bets in increasing powers of 7.
How many times had he won if he finally won net 777,777 dollars?
For those not familiar with the roulette, in this particular bet, if you bet 1 dollar, either you lose it or gain another 1 dollar.