A373592 Number of primes congruent to 2 modulo 3 dividing n (with multiplicity).
0, 1, 0, 2, 1, 1, 0, 3, 0, 2, 1, 2, 0, 1, 1, 4, 1, 1, 0, 3, 0, 2, 1, 3, 2, 1, 0, 2, 1, 2, 0, 5, 1, 2, 1, 2, 0, 1, 0, 4, 1, 1, 0, 3, 1, 2, 1, 4, 0, 3, 1, 2, 1, 1, 2, 3, 0, 2, 1, 3, 0, 1, 0, 6, 1, 2, 0, 3, 1, 2, 1, 3, 0, 1, 2, 2, 1, 1, 0, 5, 0, 2, 1, 2, 2, 1, 1, 4, 1, 2, 0, 3, 0, 2, 1, 5, 0, 1, 1, 4, 1, 2, 0, 3, 1
Offset: 1
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 1..100000
Crossrefs
Programs
-
Mathematica
f[p_, e_] := If[Mod[p, 3] == 2, e, 0]; f[3, e_] := 0; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Jun 17 2024 *)
-
PARI
A373592(n) = sum(i=1, #n=factor(n)~, (2==n[1, i]%3)*n[2, i]); \\ After code in A083025