OFFSET
1,1
COMMENTS
At present, the 0 entry for n=5 is only a conjecture.
For n <= 1000, a(5) and a(898) are the only terms not found using x <= 10^11. - Donovan Johnson, Sep 20 2012
10^11 < a(898) <= 140729946996736. - Donovan Johnson, Sep 28 2013
a(898) > 10^13 and the same bound holds for a(5), if it exists. - Giovanni Resta, Apr 02 2014
a(5) > 1.5*10^14, if it exists. - Jud McCranie, Jun 02 2019
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..1000
Carl Pomerance, On the congruences σ(n) ≡ a (mod n) and n ≡ a (mod φ(n)), Acta Arithmetica 26:3 (1974-1975), pp. 265-272. (See theorem 4.)
EXAMPLE
n=1: a(1) = smallest prime = 2.
n=3: a(3) = 4 since sigma(4) mod 4 = 7 mod 4 = 3.
n=5: Very difficult case (see Comments section).
MATHEMATICA
f[x_] := s=Mod[DivisorSigma[1, n], n]; t=Table[0, {256}]; Do[s=f[n]; If[s<257&&t[[s]]==0, t[[s]]=n], {n, 1, 10000000}]; t
PROG
(PARI) a(n)=my(k); while(sigma(k++)%k!=n, ); k \\ Charles R Greathouse IV, Dec 28 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 21 2002
STATUS
approved