OFFSET
0,4
FORMULA
EXAMPLE
n=4, Q(4)=2*3*5*7=210, reduced residue system includes 48 terms:42 primes and 6 composites and 1: a(4)=6-42=-36.
MATHEMATICA
Table[Function[P, EulerPhi@ P - 2 # &[PrimePi@ P - n]]@ Product[Prime@ i, {i, n}], {n, 0, 12}] (* Michael De Vlieger, May 08 2017 *)
CROSSREFS
KEYWORD
sign
AUTHOR
EXTENSIONS
Corrected and extended by Max Alekseyev, Feb 22 2016
STATUS
approved