OFFSET
1,5
COMMENTS
Differs from A305444 at n=35,65,70,...
LINKS
John Omielan, How do you compute the singular series?.
Terence Tao, Correlations of the von Mangoldt and higher divisor functions I. Long shift ranges. See the next formula after equation 2.
FORMULA
a(n) = numerator of Product_{p|n;p>2}(p-2)/(p-1) where p is a prime number.
MAPLE
f:= proc(n) numer(mul((p-2)/(p-1), p=select(type, numtheory:-factorset(n), odd))) end proc:
map(f, [$1..100]); # Robert Israel, Apr 07 2019
MATHEMATICA
Table[Times@@(DeleteDuplicates[DeleteCases[DeleteCases[Exp[MangoldtLambda[Divisors[h]]], 1], 2]] - 2)/Times@@(DeleteDuplicates[DeleteCases[DeleteCases[Exp[MangoldtLambda[Divisors[h]]], 1], 2]] - 1), {h, 1, 85}]
Numerator[%]
PROG
(PARI) a(n) = my(f=factor(n)[, 1]~); numerator(prod(k=1, #f, if (f[k]>2, (f[k]-2)/(f[k]-1), 1))); \\ Michel Marcus, Apr 07 2019
CROSSREFS
KEYWORD
AUTHOR
Mats Granvik, Apr 07 2019
STATUS
approved