login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A325699
Number of distinct even prime indices of n minus the number of distinct odd prime indices of n.
5
0, -1, 1, -1, -1, 0, 1, -1, 1, -2, -1, 0, 1, 0, 0, -1, -1, 0, 1, -2, 2, -2, -1, 0, -1, 0, 1, 0, 1, -1, -1, -1, 0, -2, 0, 0, 1, 0, 2, -2, -1, 1, 1, -2, 0, -2, -1, 0, 1, -2, 0, 0, 1, 0, -2, 0, 2, 0, -1, -1, 1, -2, 2, -1, 0, -1, -1, -2, 0, -1, 1, 0, -1, 0, 0, 0
OFFSET
1,10
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
FORMULA
G.f.: Sum_{k>=1} (-1)^k * x^prime(k) / (1 - x^prime(k)). - Ilya Gutkovskiy, Feb 12 2020
Additive with a(p^e) = (-1)^primepi(p). - Amiram Eldar, Jun 17 2024
MATHEMATICA
Table[Total[(-1)^PrimePi/@First/@If[n==1, {}, FactorInteger[n]]], {n, 100}]
KEYWORD
sign
AUTHOR
Gus Wiseman, May 17 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 24 10:20 EDT 2024. Contains 376196 sequences. (Running on oeis4.)