1841: 【CSP函数递归】递归求解等比数列▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:3

Description

定义函数,递归求解等比数列:1 2 4 8 16...第n项的值。

递归规律:A(n)=A(n-1)*2

Input

输入一个整数n。

Output

输出等比数列,各数用空格隔开。

Sample Input Copy

4

Sample Output Copy

1 2 4 8