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!)
A089312 Write n in binary; a(n) = number represented by rightmost block of 1's. 3
0, 1, 1, 3, 1, 1, 3, 7, 1, 1, 1, 3, 3, 1, 7, 15, 1, 1, 1, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 1, 15, 31, 1, 1, 1, 3, 1, 1, 3, 7, 1, 1, 1, 3, 3, 1, 7, 15, 3, 1, 1, 3, 1, 1, 3, 7, 7, 1, 1, 3, 15, 1, 31, 63, 1, 1, 1, 3, 1, 1, 3, 7, 1, 1, 1, 3, 3, 1, 7, 15, 1, 1, 1, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 1, 15, 31, 3, 1, 1, 3, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
EXAMPLE
13 = 1101 so a(13) = 1.
MATHEMATICA
rb1[n_]:=Module[{id=Split[IntegerDigits[n, 2]]}, If[MemberQ[ Last[ id], 0], FromDigits[ id[[-2]], 2], FromDigits[id[[-1]], 2]]]; Join[{0}, Array[ rb1, 100]] (* Harvey P. Dale, Dec 18 2015 *)
CROSSREFS
a(2n+1) = A038712(n+1).
Sequence in context: A253223 A121745 A252983 * A246674 A363340 A058735
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 22 2003
EXTENSIONS
More terms from Vladeta Jovovic, Jan 20 2004
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 19 05:19 EDT 2024. Contains 371782 sequences. (Running on oeis4.)