login
A276497
Number of noncomposites in the reduced residue system of n-th primorial number, A002110(n).
0
1, 2, 8, 43, 339, 3243, 42325, 646022, 12283523, 300369787, 8028643000, 25948875073, 9414916809083, 362597750396727, 15397728527812844, 742238179058722876, 40068968501510691878
OFFSET
1,2
FORMULA
a(n) = pi(primorial(n)) - n + 1, n > 0.
a(n) = A000849(n) - n + 1, n > 0.
a(n) = A048862(n) + 1. - Michel Marcus, Oct 03 2016
MATHEMATICA
Primorial[n_] := Product[Prime[j], {j, 1, n}];
Table[PrimePi[Primorial[n]] - n + 1, {n, 1, 12}]
PROG
(PARI) a(n) = primepi(prod(k=1, n, prime(k))) - n + 1; \\ Michel Marcus, Oct 03 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Andres Cicuttin, Sep 29 2016
EXTENSIONS
Definition aligned with formulas and data by Peter Munn, Sep 06 2023
STATUS
approved