login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A241853
Records of the difference between the maximum and minimum x's such that sigma(x)=m.
2
0, 5, 7, 9, 10, 21, 35, 41, 49, 63, 107, 139, 143, 155, 185, 239, 269, 311, 317, 327, 383, 389, 395, 455, 475, 503, 527, 533, 655, 695, 715, 727, 739, 851, 887, 959, 1031, 1055, 1169, 1241, 1267, 1483, 1547, 1571, 1697, 1763, 1793, 2039, 2219, 2279, 2347
OFFSET
1,2
LINKS
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
Cf. A241852 (corresponding m's).
Sequence in context: A158251 A212191 A336122 * A165513 A002342 A080353
KEYWORD
nonn
AUTHOR
Michel Marcus, Apr 30 2014
STATUS
approved