login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A181940 a(0)=0, and there are a(n) terms between a(n) and the nearest a(n)+1. 0
0, 1, 0, 2, 0, 1, 3, 1, 0, 2, 4, 2, 0, 1, 3, 5, 3, 1, 0, 2, 4, 6, 4, 2, 0, 1, 3, 5, 7, 5, 3, 1, 0, 2, 4, 6, 8, 6, 4, 2, 0, 1, 3, 5, 7, 9, 7, 5, 3, 1, 0, 2, 4, 6, 8, 10, 8, 6, 4, 2, 0, 1, 3, 5, 7, 9, 11, 9, 7, 5, 3, 1, 0, 2, 4, 6, 8, 10, 12, 10, 8, 6, 4, 2, 0, 1, 3, 5, 7, 9, 11, 13, 11, 9, 7, 5, 3, 1, 0, 2, 4, 6, 8, 10, 12, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

Table of n, a(n) for n=0..105.

FORMULA

a(A000217(n))=n.

PROG

(PARI) a_list(N)={my(a=vector(2*N), c=0); for(i=2, N, a[i]=c++; my(j=i); for(k=1, c-1, a[j-=(-1)^k*(c-k+1)]=c-k); i+=c); vecextract(a, 2^N-1)}

CROSSREFS

Sequence in context: A137712 A194711 A168532 * A093555 A065432 A094184

Adjacent sequences:  A181937 A181938 A181939 * A181941 A181942 A181943

KEYWORD

nonn

AUTHOR

Eric Angelini and M. F. Hasler, Apr 03 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 24 02:16 EDT 2013. Contains 225613 sequences.