|
|
A138097
|
|
Duplicate of A004956, for n>0.
|
|
0
|
|
|
1, 3, 4, 6, 8, 9, 11, 13, 15, 17, 18, 20, 22, 23, 25, 28, 30
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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).
|
|
LINKS
|
|
|
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
|
|
CROSSREFS
|
|
|
KEYWORD
|
dead
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|