OFFSET
1,2
COMMENTS
Denominator of Product_{p<=n, p prime} (1 - 1/p). - Franz Vrabec, Jan 28 2014
LINKS
David A. Corneth, Table of n, a(n) for n = 1..2926
MATHEMATICA
Numerator[#/EulerPhi[#]]&/@(Range[40]!) (* Harvey P. Dale, Apr 16 2016 *)
PROG
(PARI) a(n) = denominator(prod(p=1, n, if (isprime(p), (1-1/p), 1))); \\ Michel Marcus, Jan 28 2014
(PARI) first(n) = {my(res = vector(n), q = 2); res[1] = 1; res[2] = 1/2; forprime(p = 3, n, for(k = q + 1, p - 1, res[k] = res[k-1] ); res[p] = res[p-1]*(1-1/p); q = p; ); for(k = precprime(n)+1, n, res[k] = res[k-1] ); vector(n, i, denominator(res[i])) } \\ David A. Corneth, May 22 2020
CROSSREFS
KEYWORD
easy,nonn,frac
AUTHOR
Labos Elemer, Oct 08 2002
STATUS
approved