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!)
A088697 Replace 0 with 10 in binary representation of n. 3
0, 1, 6, 3, 26, 13, 14, 7, 106, 53, 54, 27, 58, 29, 30, 15, 426, 213, 214, 107, 218, 109, 110, 55, 234, 117, 118, 59, 122, 61, 62, 31, 1706, 853, 854, 427, 858, 429, 430, 215, 874, 437, 438, 219, 442, 221, 222, 111, 938, 469, 470, 235, 474, 237 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(0)=0, a(2n) = 4a(n) + 2, a(2n+1) = 2a(n) + 1.
EXAMPLE
n=9: 1001 -> 110101 = 53, so a(9) = 53.
MATHEMATICA
Join[{0}, Table[FromDigits[Flatten[IntegerDigits[n, 2]/.(0->{1, 0})], 2], {n, 80}]] (* Harvey P. Dale, Dec 05 2023 *)
PROG
(PARI) a(n)=if(n<1, 0, if(n%2==0, 4*a(n/2)+2, 2*a((n-1)/2)+1))
CROSSREFS
Sequence in context: A288202 A369368 A294032 * A039631 A355867 A287510
KEYWORD
nonn,easy,base
AUTHOR
Ralf Stephan, Oct 07 2003
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 07:34 EDT 2024. Contains 371905 sequences. (Running on oeis4.)