OFFSET
1,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..349
FORMULA
a(n) = primorial(n) - (phi(primorial(n)) + tau(primorial(n)) - 1). - Michael De Vlieger, Feb 04 2015
EXAMPLE
The 4th primorial (210) has 16 divisors and 48 coprimes, so a(4) = 210 - 64 + 1 = 147.
MATHEMATICA
# - (EulerPhi@ # + DivisorSigma[0, #] - 1) & /@ (Product[ Prime@ i, {i, 1, #}] & /@ Range@ 17) (* Michael De Vlieger, Feb 04 2015 *)
PROG
(PARI) a002110(n) = prod(i=1, n, prime(i));
a(n) = my(pr = a002110(n)); pr - numdiv(pr) - eulerphi(pr) + 1; \\ Michel Marcus, Feb 22 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved