OFFSET
1,3
LINKS
FORMULA
If n = Product (p_j^k_j) then a(n) = denominator of Sum (1/pi(p_j)).
G.f. for fractions: Sum_{k>=1} x^prime(k) / (k*(1 - x^prime(k))).
EXAMPLE
0, 1, 1/2, 1, 1/3, 3/2, 1/4, 1, 1/2, 4/3, 1/5, 3/2, 1/6, 5/4, 5/6, 1, 1/7, 3/2, 1/8, 4/3, ...
MATHEMATICA
Join[{1}, Table[Plus @@ (1/PrimePi[#[[1]]] & /@ FactorInteger[n]), {n, 2, 95}] // Denominator]
nmax = 95; CoefficientList[Series[Sum[x^Prime[k]/(k (1 - x^Prime[k])), {k, 1, nmax}], {x, 0, nmax}], x] // Denominator // Rest
PROG
(PARI) a(n) = my(f=factor(n)); denominator(sum(k=1, #f~, 1/primepi(f[k, 1]))); \\ Michel Marcus, Mar 11 2025
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Ilya Gutkovskiy, Mar 11 2025
STATUS
approved
