A319676 Numerator of A047994(n)/n where A047994 is the unitary totient function.
1, 1, 2, 3, 4, 1, 6, 7, 8, 2, 10, 1, 12, 3, 8, 15, 16, 4, 18, 3, 4, 5, 22, 7, 24, 6, 26, 9, 28, 4, 30, 31, 20, 8, 24, 2, 36, 9, 8, 7, 40, 2, 42, 15, 32, 11, 46, 5, 48, 12, 32, 9, 52, 13, 8, 3, 12, 14, 58, 2, 60, 15, 16, 63, 48, 10, 66, 12, 44, 12, 70, 7, 72, 18, 16
Offset: 1
Crossrefs
Programs
-
Mathematica
uphi[n_] := Product[{p, e} = pe; p^e - 1, {pe, FactorInteger[n]}]; a[n_] := If[n == 1, 1, Numerator[uphi[n]/n]]; Array[a, 100] (* Jean-François Alcover, Jan 10 2022 *)
-
PARI
a(n)=my(f=factor(n)~); numerator(prod(i=1, #f, f[1, i]^f[2, i]-1)/n);