OFFSET
1,2
COMMENTS
No terms are zero if Carmichael's conjecture is true.
Even terms are rare: e.g., all inverses of 257*2^16 are even [Foster], so the difference between the largest and smallest inverse is even.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
William P. Wardlaw, L. L. Foster and R. J. Simpson, Problem E3361, Amer. Math. Monthly, Vol. 98, No. 5 (May, 1991), 443-444.
EXAMPLE
MATHEMATICA
max = 300; inversePhi[_?OddQ] = {}; inversePhi[1] = {1, 2}; inversePhi[m_] := Module[{p, nmax, n, nn}, p = Select[Divisors[m] + 1, PrimeQ]; nmax = m*Times @@ (p/(p - 1)); n = m; nn = Reap[While[n <= nmax, If[EulerPhi[n] == m, Sow[n]]; n++]] // Last; If[nn == {}, {}, First[nn]]]; Join[{2}, Reap[For[n = 2, n <= max, n = n + 2, nn = inversePhi[n] ; If[ nn != {} , Sow[Max[nn] - Min[nn]]]]] // Last // First] (* Jean-François Alcover, Nov 21 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Franz Vrabec, Sep 27 2011
EXTENSIONS
a(1) corrected by the editors, Nov 23 2013
a(1) in b-file corrected by Andrew Howroyd, Feb 22 2018
STATUS
approved