A054905 Smallest composite x such that sigma(x) + 2n = sigma(x + 2n).
434, 305635357, 104, 27, 195556, 65, 12, 39, 20, 56, 916, 80, 212282, 57, 44, 106645, 52, 125
Offset: 1
Examples
a(5) corresponds to n=3+2=5, d=2n=10 and the smallest composite integer is 195556. The next solution is 1152136225.
Links
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
Comments