Python program to print the Aitken’s array

preview_player
Показать описание
Print the Aitken’s array up to n integer.
Example

# Input: 6
# Output:
# [1]
# [1, 2]
# [2, 3, 5]
# [5, 7, 10, 15]
# [15, 20, 27, 37, 52]
# [52, 67, 87, 114, 151, 203]

Рекомендации по теме