OFFSET
1,2
COMMENTS
EXAMPLE
a(n) ban 1 2 3 4 5 6 7 ...
1 | | | | | | |
2 x | | | | | |
1 | x | | | | |
3 x x | | | | |
1 | x x | | | |
4 x x x | | | |
1 | x x x | | |
5 x x x x | | |
1 | x x x x | |
6 x x x x x | |
1 | | x x x x |
2 x | x x x x |
1 | x x x x x |
7 x x x x x x |
1 | x x x x x x
.
.
.
PROG
(Python)
a = []
ban = [0 for n in range(500)]
for i in range(1000):
can = ban.index(0, 1)
ban = [max(b-1, 0) for b in ban]
a.append(can)
ban[can] = can**3
CROSSREFS
KEYWORD
nonn
AUTHOR
Rok Cestnik, Jul 25 2023
STATUS
approved