login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A075897 1 if binary weight of n is 1 or 2, otherwise 0. 6
0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..104.

Index entries for characteristic functions

FORMULA

For n>0: a(n) = 0^floor(A000120(n)/3). - Reinhard Zumkeller, Apr 07 2003

MATHEMATICA

Table[If[MemberQ[{1, 2}, Total[IntegerDigits[n, 2]]], 1, 0], {n, 0, 120}] (* Harvey P. Dale, Jul 26 2017 *)

CROSSREFS

1 if n is in A048645, 0 otherwise.

Sequence in context: A167393 A275606 A106549 * A135947 A211487 A101040

Adjacent sequences:  A075894 A075895 A075896 * A075898 A075899 A075900

KEYWORD

nonn

AUTHOR

Benoit Cloitre, Mar 29 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 7 19:57 EDT 2020. Contains 336279 sequences. (Running on oeis4.)