Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n1 = int(input())
- n2 = 1
- while n2 <= n1:
- print(n2)
- n2 = 2 * n2 + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement