OFFSET
3,1
COMMENTS
Apparently, for p > 2 a prime, we have a(p) = 2*p. If n is not a prime, then let q be the smallest prime dividing n. phi(n) then has (q-1) as factor. Therefore (q-1)q is neither coprime to n nor phi(n). Since q is the smallest prime dividing n, we have a(n) < n. - Stefan Steinerberger, Jun 29 2008
LINKS
David A. Corneth, Table of n, a(n) for n = 3..10002
EXAMPLE
a(4) = 2 as phi(4) = 2 and the gcd of the smallest prime factors of 4 and phi(4) is 2 which is smaller than the product of the smallest prime factors (2*2 = 4). - David A. Corneth, Jul 24 2025
MATHEMATICA
a = {}; For[n = 3, n < 80, n++, i = 2; While[Min[GCD[i, n], GCD[EulerPhi[n], i]] == 1, i++ ]; AppendTo[a, i]]; a (* Stefan Steinerberger, Jun 29 2008 *)
PROG
(PARI) a(n) = {my(f = factor(n), s = eulerphi(f), fs = factor(s), res = f[1, 1] * fs[1, 1], g); g = gcd(n, s); if(g > 1, fg = factor(g); return(min(res, fg[1, 1]))); res
} \\ David A. Corneth, Jul 24 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Leroy Quet, Jun 28 2008
EXTENSIONS
More terms from Stefan Steinerberger, Jun 29 2008
a(78)-a(88) from Ray Chandler, Jun 24 2009
STATUS
approved
