Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = 0
- def f(x):
- global s
- s += 1
- if s >= 25:
- return 2*x + 1
- else:
- return f(2*x + 1)
- for n in range(1, 41):
- s = 0
- res = f(n)
- if res == 536870911:
- print(n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement