login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 13:51 EDT 2024. Contains 371914 sequences. (Running on oeis4.)