OFFSET
1,5
COMMENTS
Numerator of Product_{p<=n, p prime} (1 - 1/p). - Franz Vrabec, Jan 28 2014
LINKS
Robert Israel, Table of n, a(n) for n = 1..2926
FORMULA
MAPLE
P:= 1: p:= 1: v:= 1:
while p < 100 do q:= nextprime(p);
for i from p to q-1 do A[i]:= v od;
P:= P * (1-1/q);
v:= numer(P);
p:= q;
od:
seq(A[i], i=1..q-1); # Robert Israel, Oct 18 2018
MATHEMATICA
dnf[n_]:=With[{nn=n!}, Denominator[nn/EulerPhi[nn]]]; Array[dnf, 40] (* Harvey P. Dale, Feb 21 2015 *)
PROG
(PARI) a(n) = numerator(prod(p=1, n, if (isprime(p), (1-1/p), 1))); \\ Michel Marcus, Jan 28 2014
CROSSREFS
KEYWORD
easy,nonn,frac
AUTHOR
Labos Elemer, Oct 08 2002
STATUS
approved