login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A143731
Characteristic function of numbers with at least two distinct prime factors (A024619).
13
0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1
OFFSET
1,1
COMMENTS
a(n) = 1 iff n is divisible by at least two distinct primes; otherwise 0.
FORMULA
a(n) = abs(A079872(n)) = A057427(A079275(n)).
For n>1: a(n) = 1 - floor(1/A001221(n)). - Enrique Pérez Herrero, Aug 13 2012
MATHEMATICA
Table[Boole[PrimeNu[n]>1], {n, 1, 200}] (* Enrique Pérez Herrero, Aug 13 2012 *)
KEYWORD
easy,nonn
AUTHOR
Reikku Kulon, Aug 30 2008
STATUS
approved