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!)
A345374 Number of unitary prime divisors of n whose prime index is odd. 2
0, 1, 0, 0, 1, 1, 0, 0, 0, 2, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 2, 1, 0, 0, 1, 0, 0, 0, 2, 1, 0, 1, 2, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 2, 1, 0, 0, 1, 1, 0, 0, 1, 2, 0, 0, 1, 1, 1, 0, 2, 0, 0, 1, 2, 1, 1, 1, 2, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 2, 1, 0, 2, 1, 0, 1, 0, 2, 0, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,10
LINKS
FORMULA
a(n) = Sum_{p|n, p prime} (pi(p) mod 2) * floor(1/gcd(p,n/p)).
From Amiram Eldar, Oct 06 2023: (Start)
a(n) = A056169(n) - A345375(n).
a(n) <= A324966(n), with equality if and only if n is squarefree (A005117).
Additive with a(p^e) = 1 if e = 1 and primepi(p) is odd and 0 otherwise. (End)
MATHEMATICA
f[p_, e_] := If[e == 1 && OddQ[PrimePi[p]], 1, 0]; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Oct 06 2023 *)
PROG
(PARI) a(n) = {my(f = factor(n)); sum(i = 1, #f~, if(f[i, 2] == 1 && primepi(f[i, 1])%2, 1, 0)); } \\ Amiram Eldar, Oct 06 2023
CROSSREFS
Sequence in context: A328556 A321888 A321750 * A056929 A304096 A151692
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jun 16 2021
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 19 08:20 EDT 2024. Contains 371782 sequences. (Running on oeis4.)