BbJLeB

Sequence 2k+1

May 9th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. number = int(input())
  2. counter = 1
  3. while counter <= number:
  4.     print(counter)
  5.     counter = 2 * counter + 1
Advertisement
Add Comment
Please, Sign In to add comment