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!)
A333906 For n >= 2, a(n) = Sum_{k=2..n} prevpower2(k) + nextpower2(k) - 2*k, where prevpower2(k) is the largest power of 2 < k, nextpower2(k) is the smallest power of 2 > k. 0
1, 1, 3, 5, 5, 3, 7, 13, 17, 19, 19, 17, 13, 7, 15, 29, 41, 51, 59, 65, 69, 71, 71, 69, 65, 59, 51, 41, 29, 15, 31, 61, 89, 115, 139, 161, 181, 199, 215, 229, 241, 251, 259, 265, 269, 271, 271, 269, 265, 259, 251, 241, 229, 215, 199, 181, 161 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,3
COMMENTS
Partial sums of b(k) = prevpower2(k) + nextpower2(k) - 2*k; b(k) = 0 for A007283.
LINKS
EXAMPLE
a(2) = (1 + 4 - 2*2) = 1;
a(3) = (1 + 4 - 2*2) + (2 + 4 - 2*3) = 1;
a(4) = (1 + 4 - 2*2) + (2 + 4 - 2*3) + (2 + 8 - 2*4) = 3.
CROSSREFS
Sequence in context: A184593 A328154 A249304 * A306224 A189202 A153098
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Apr 09 2020
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 23 18:16 EDT 2024. Contains 371916 sequences. (Running on oeis4.)