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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A044051 a(n)=(s(n)+1)/2, where s=A006995 (base 2 palindromes). 5
1, 2, 3, 4, 5, 8, 9, 11, 14, 16, 17, 23, 26, 32, 33, 37, 43, 47, 50, 54, 60, 64, 65, 77, 83, 95, 98, 110, 116, 128, 129, 137, 149, 157, 163, 171, 183, 191, 194, 202, 214, 222, 228, 236, 248, 256, 257, 281, 293, 317, 323, 347, 359, 383 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A141707(a(n)) = 1. - Reinhard Zumkeller, Apr 20 2015

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

FORMULA

Let n>=3, m=floor(log_2(n)), p=floor((3*2^(m-1)-1)/n), then

a(n)=2^(2*m-2-p)+1+p*(1-(-1)^n)*2^(m-1)+(1/2)*sum(k=1...(m-1-p), (floor((n-(3-p)*2^(m-1))/2^(m-1-k)) mod 2)*(2^k+2^(2*m-1-p-k)) - Hieronymus Fischer, Feb 18 2012

PROG

(Haskell)

a044051 = (`div` 2) . (+ 1) . a006995 . (+ 1)

-- Reinhard Zumkeller, Apr 20 2015

CROSSREFS

Cf. A006995, A141707.

Sequence in context: A287802 A214207 A302497 * A217288 A083132 A302602

Adjacent sequences:  A044048 A044049 A044050 * A044052 A044053 A044054

KEYWORD

nonn,base

AUTHOR

Melia Aldridge, ma38(AT)spruce.evansville.edu

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 20 15:04 EST 2019. Contains 320327 sequences. (Running on oeis4.)