Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = [1]
- cou = 0
- for i in range(2018):
- x.append(x[i // 2] + i % 2)
- print("x[", i + 2, "] = ", x[-1], sep = '')
- if (x[-1] == 8):
- cou += 1
- print("cou =", cou)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement