Martingale formula help required

please help me to get the formula for

MARTINGALE .

I am using the formula as shown in fig.

it gives result as 1,2,3 and so on

I want a result as 1,2,4,8 and so on