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.

A054905 Smallest composite x such that sigma(x) + 2n = sigma(x + 2n).

Original entry on oeis.org

434, 305635357, 104, 27, 195556, 65, 12, 39, 20, 56, 916, 80, 212282, 57, 44, 106645, 52, 125
Offset: 1

Views

Author

Labos Elemer May 23 2000

Keywords

Comments

a(19) > 4293000000, if it exists. - Jud McCranie, May 25 2000
a(19) > 10^11, if it exists. - Charles R Greathouse IV, Oct 26 2022

Examples

			a(5) corresponds to n=3+2=5, d=2n=10 and the smallest composite integer is 195556. The next solution is 1152136225.
		

Crossrefs

Programs

  • PARI
    a(n)=forcomposite(x=3,10^66,if(sigma(x)+2*n==sigma(x+2*n),return(x)));
    for(n=1,66,print1(a(n),", ")); \\ Joerg Arndt, Nov 15 2014
    
  • PARI
    a19(lim,startAt=39)=startAt=ceil(startAt); my(v=vectorsmall(38),i=(startAt-1)%38); forfactored(n=startAt,lim\1+38, my(t=sigma(n)); if(i++>38,i=1); if(t==v[i]+38, return(n[1]-38)); v[i]=if(vecsum(n[2][,2])>1,t,0)) \\ Charles R Greathouse IV, Oct 25 2022

Extensions

Description corrected by Jud McCranie, May 25 2000