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!)
A086483 Bit that is two places to left of least significant 1-bit in the binary expansion of n. 2
0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
EXAMPLE
For n = 4, 5, 6, 7, 8 the binary expansions are 100, 101, 110, 111, 1000 and the values of a(n) are respectively 0, 1, 0, 1, 0.
MATHEMATICA
Join[{0}, Array[BitGet[#, IntegerExponent[#, 2] + 2] &, 100]] (* Paolo Xausa, Apr 02 2024 *)
PROG
(PARI) a(n) = bittest(n, if(n, valuation(n, 2)+2)); \\ Kevin Ryde, Apr 07 2022
CROSSREFS
Cf. A038189.
Sequence in context: A144196 A156659 A011671 * A337383 A011667 A144195
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 22 2003
EXTENSIONS
Corrected and extended by Douglas Gaut (dgaut(AT)ashland.edu), Apr 12 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 24 08:21 EDT 2024. Contains 371926 sequences. (Running on oeis4.)