DiYane

sequence 2k+1 4/9

Aug 11th, 2021
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. n = int(input())
  2. num = 1
  3. while num <= n:
  4.     print(num)
  5.     num = num *2 + 1
Advertisement
Add Comment
Please, Sign In to add comment