login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)