The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A274576 a(2n) = floor(n/2), a(2n+1) = a(n), a(0)=0. 0
0, 0, 0, 0, 1, 0, 1, 0, 2, 1, 2, 0, 3, 1, 3, 0, 4, 2, 4, 1, 5, 2, 5, 0, 6, 3, 6, 1, 7, 3, 7, 0, 8, 4, 8, 2, 9, 4, 9, 1, 10, 5, 10, 2, 11, 5, 11, 0, 12, 6, 12, 3, 13, 6, 13, 1, 14, 7, 14, 3, 15, 7, 15, 0, 16, 8, 16, 4, 17, 8, 17, 2, 18, 9, 18, 4, 19, 9, 19, 1, 20, 10, 20, 5, 21, 10, 21, 2, 22, 11, 22, 5, 23, 11, 23, 0, 24, 12, 24, 6, 25, 12, 25, 3, 26, 13, 26, 6, 27, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,9
COMMENTS
Self-similar or fractal sequence (underlining every second or fourth term, reproduce the original sequence).
LINKS
FORMULA
a(2n) = a(4n+1) = A004526(n).
a(4n) = a(4n+2) = A001477(n).
a(2n+1) = a(4n+3) = a(n).
a(2^k*n) = 2^(k-2)*n, k>1.
EXAMPLE
a(0) = 0;
a(1) = a(2*0+1) = a(0) = 0;
a(2) = a(2*1) = floor(1/2) = 0,
a(3) = a(2*1+1) = a(1) = 0;
a(4) = a(2*2) = floor(2/2) = 1;
a(5) = a(2*2+1) = a(2) = 0;
a(6) = a(2*3) = floor(3/2) = 1, etc.
...........................................
a(n) = 0, 0, 0, 0, 1, 0, 1, 0, 2, 1, ...
a(2n+1) = 0, 0, 0, 0, 1, 0, 1, 0, 2, 1, ...
a(4n+3) = 0, 0, 0, 0, 1, 0, 1, 0, 2, 1, ...
a(2n) = 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, ...
a(4n+1) = 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, ...
a(4n) = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
a(4n+2) = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
...........................................
MATHEMATICA
Table[BitShiftRight[n, IntegerExponent[n, 2] + 2], {n, 100}]
CROSSREFS
Sequence in context: A257460 A339471 A159834 * A257081 A271484 A199920
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Jun 29 2016
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 May 20 12:27 EDT 2024. Contains 372712 sequences. (Running on oeis4.)