Bash, 25 22 bytes
f()(
echo $[1<<a++];f)
Saved 3 bytes thanks to Digital Trauma
Solution of Digital Trauma's:
Bash, 18 bytes
echo $1
$0 $[$1*2]
f()(
echo $[1<<a++];f)
Saved 3 bytes thanks to Digital Trauma
Solution of Digital Trauma's:
echo $1
$0 $[$1*2]