OFFSET
1,1
COMMENTS
All the terms are even.
The are only 2 equal consecutive terms in A001157: sigma_2(6) = sigma_2(7) = 50.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..156
Jean-Marie De Koninck, On the solutions of sigma_2(n) = sigma_2(n + l), Ann. Univ. Sci. Budapest Sect. Comput. 21 (2002), 127-133.
MATHEMATICA
seq[mmax_] := Module[{s1 = DivisorSigma[2, 1], s2 = DivisorSigma[2, 2], s3, s4, s={}}, Do[s3 = DivisorSigma[2, m]; s4 = DivisorSigma[2, m+1]; If[s1 == s3, AppendTo[s, s1]]; If[s2 == s4, AppendTo[s, s2]]; s1 = s3; s2 = s4, {m, 3, mmax, 2}]; s]; seq[10^6]
PROG
(PARI) lista(mmax) = {my(s1 = sigma(1, 2), s2 = sigma(2, 2), s3, s4); forstep(m = 3, mmax, 2, s3 = sigma(m, 2); s4 = sigma(m+1, 2); if(s1 == s3, print1(s1, ", ")); if(s2 == s4, print1(s2, ", ")); s1 = s3; s2 = s4); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Apr 19 2024
STATUS
approved