cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A007365 Smallest k such that sigma(n+k) = sigma(k).

Original entry on oeis.org

1, 14, 33, 382, 51, 6, 20, 10, 15, 14, 21, 28, 35, 182, 24, 26, 30, 142, 40, 34, 42, 20, 57, 135, 70, 30, 99, 42, 66, 406, 88, 56, 60, 54, 93, 24, 105, 248, 147, 44, 63, 30, 80, 435, 114, 52, 196, 310, 140, 40, 105, 92, 160, 66, 120, 140, 105, 88, 352, 154
Offset: 0

Views

Author

Keywords

Comments

If p > 3 is prime, a(p) <= 14*p. - Robert Israel, Feb 21 2020

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 840.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A065932, A065933. sigma(x)=A000203(x) is the sum of the divisors of x.

Programs

  • Maple
    N:= 1000: # to get all terms before the first with n + a(n) > N
    S:= map(numtheory:-sigma, [$1..N]):
    Res:= NULL:
    found:= true:
    for n from 1 while found do
    found:= false;
    for k from 1 to N-n do
       if S[k] = S[k+n] then
         Res:= Res, k; found:= true; break;
       fi
    od;
    od:
    Res; # Robert Israel, Feb 21 2020
  • Mathematica
    sk[n_]:=Module[{k=1},While[DivisorSigma[1,k]!=DivisorSigma[1,n+k], k++];k]; Array[sk,60,0] (* Harvey P. Dale, Oct 10 2012 *)
  • PARI
    A007365(m)= {local(k,n); for(k=1,m,n=1; while(sigma(n)!=sigma(n+k), n++); print1(n,","))} \\ Klaus Brockhaus

A065933 Successive maxima in sequence A007365.

Original entry on oeis.org

1, 14, 33, 382, 406, 435, 8786, 14390, 16172, 16640, 16830, 17850, 21736, 25194, 29640, 30240, 37791, 41496, 46189, 50388, 62985, 65208, 75582, 80256, 92378, 100776, 113373, 125970, 138567, 140184, 151164, 184756, 188955, 230230, 251940, 277134, 289731, 302328
Offset: 1

Views

Author

Jason Earls, Nov 28 2001

Keywords

Comments

RECORDS transform of A007365.

Crossrefs

Extensions

More terms from David Wasserman, Oct 10 2002
Offset corrected by Donovan Johnson, Nov 26 2013
Showing 1-2 of 2 results.