OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
EXAMPLE
Only sigma(1)=1, hence the first difference is 0.
The next m with several x's is 12 with sigma(6)=sigma(11)=12, difference 5 is > 0.
PROG
(PARI) sigv(n) = select(i->sigma(i) == n, vector(n, i, i));
ds(n) = {v = sigv(n); if (#v == 0, 0, vecmax(v) - vecmin(v)); }
lista(nn) = {dmax = -1; for (n=1, nn, if ((dv = ds(n)) > dmax, print1(dv, ", "); dmax = dv; ); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Apr 30 2014
STATUS
approved