OFFSET
0,6
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..25 (calculated using the b-file at A003604)
EXAMPLE
For n = 5, n! = 120, a(5) = phi(120) - pi(120) + pi(5) = 32 - 30 + 3 = 5; the 5 nonprimes are 1, 49, 77, 91, 119.
MATHEMATICA
a[n_] := EulerPhi[ n! ]-PrimePi[ n! ]+PrimePi[n]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 22 2002
EXTENSIONS
a(18)-a(19) from Donovan Johnson, Mar 24 2011
a(20)-a(23) from Giovanni Resta, Oct 29 2019
STATUS
approved