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!)
A215480 Characteristic function of numbers n with exactly two distinct prime factors. 4
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, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
Characteristic function of numbers A007774.
Sum_{n>=1} a(n)/n^s = Sum_(A001221(n)=2, 1/n^s) = 1/2((Sum_(p prime, 1/(p^s-1))^2 - Sum_(p prime, 1/(p^s-1)^2)). - Enrique Pérez Herrero, Aug 14 2012
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..5000
FORMULA
a(n) = (1-floor(1/A001221(n))*floor(2/A001221(n)), n > 1.
MATHEMATICA
Table[Boole[PrimeNu[n]==2], {n, 1, 200}]
CROSSREFS
Sequence in context: A353671 A353672 A323170 * A143731 A079872 A235046
KEYWORD
nonn
AUTHOR
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 August 14 14:00 EDT 2024. Contains 375165 sequences. (Running on oeis4.)