OFFSET
1,2
COMMENTS
Previous name was: Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add 1 to each term from position n to position n + a(n).
PROG
(PARI) lista(nn) = my(va = [1..nn]); for (k=1, nn, for (i=k, k+va[k], if (i<= #va, va[i]++); ); ); va; \\ Michel Marcus, Aug 07 2022
(Python)
N = 50
a = [0] + [i for i in range(1, N+1)]
for n in range(1, N+1):
for j in range(n, min(n+a[n]+1, len(a))):
a[j] += 1
print(a[1:]) # Michael S. Branicky, Aug 10 2022
CROSSREFS
KEYWORD
dead
AUTHOR
Ctibor O. Zizka, May 03 2008
STATUS
approved