```
def pop(n):
    result,counter = 0,0
    while counter<=n:
        result=(2**counter)
        counter=counter+1
    return result

example:
>>>pop(4)
16

```

How do i return all the results? like:

```
1
2
4
8
16

```