Exponential-ish number sequence Your program must print out this exact sequence:

1
2
4
10
24
54
116
242
496
1006
2028
4074
8168
16358
32740
65506
131040
262110
NOPE!


As usual, shortest program wins. Standard code golf rules apply.
Python 2, 51 bytes



i=0;exec"print 2**i-i&lt;&lt;(i&gt;0);i+=1;"*18;print"NOPE!"


Try it online!

Notices that the formula is 2(2n-n), for all n except 0.

Saved two bytes thanks to Wheat Wizard (i&lt;&lt;1-(i&lt;1) changed to i&lt;&lt;(i&gt;0), duh!).



Python 2, 53 bytes

i=0;exec"print[2**i-i&lt;&lt;(i&gt;0),'NOPE!'][i&gt;17];i+=1;"*19


Try it online!