login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

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
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
Sequence in context: A285681 A133280 A280762 * A193732 A000592 A138924
KEYWORD
dead
AUTHOR
Ctibor O. Zizka, May 03 2008
STATUS
approved