|
|
A340072
|
|
a(n) = phi(x) / gcd(x-1, phi(x)), where x = A003961(n), i.e., n with its prime factorization shifted one step towards larger primes.
|
|
6
|
|
|
1, 1, 1, 3, 1, 4, 1, 9, 5, 3, 1, 6, 1, 5, 12, 27, 1, 20, 1, 18, 20, 12, 1, 36, 7, 16, 25, 30, 1, 6, 1, 81, 3, 9, 15, 15, 1, 11, 16, 27, 1, 20, 1, 18, 20, 28, 1, 54, 11, 42, 36, 12, 1, 100, 4, 45, 44, 15, 1, 72, 1, 36, 100, 243, 48, 48, 1, 54, 7, 12, 1, 180, 1, 40, 42, 66, 60, 64, 1, 162, 125, 21, 1, 120, 9, 23, 60, 108
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
f:= proc(n) local F, x, p, t;
F:= ifactors(n)[2];
x:= mul(nextprime(t[1])^t[2], t=F);
p:= numtheory:-phi(x);
p/igcd(x-1, p)
end proc:
|
|
MATHEMATICA
|
a[n_] := Module[{x, p, e, phi}, x = Product[{p, e} = pe; NextPrime[p]^e, {pe, FactorInteger[n]}]; phi = EulerPhi[x]; phi/GCD[x-1, phi]];
|
|
PROG
|
(PARI)
A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|