OFFSET
1,4
COMMENTS
a(n) = 1 if n is squarefree.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
FORMULA
1 <= a(n) <= sqrt(n). The lower bound is sharp (squarefree numbers), as is the upper bound (squares of primes). - Charles R Greathouse IV, May 03 2023
MATHEMATICA
A362414[n_]:=With[{p=EulerPhi[n]}, GCD[n, p^2]/GCD[n, p]];
Array[A362414, 100] (* Paolo Xausa, Oct 22 2023 *)
PROG
(Magma) [Gcd(n, EulerPhi(n)^2) / Gcd(n, EulerPhi(n)): n in [1..100]];
(PARI) a(n)=my(f=eulerphi(n)); gcd(n, f^2)/gcd(n, f) \\ Charles R Greathouse IV, May 03 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Apr 19 2023
STATUS
approved