A067816 Numbers k such that sigma(k+1) - sigma(k) = k + 1.
1, 5, 8585, 16119, 29886159
Offset: 1
Crossrefs
Cf. A024816.
Programs
-
Mathematica
h[n_] := (n (n + 1)/2) - DivisorSigma[1, n]; Select[Range[10^6], h[ # ] == h[ # + 1] &] (* Joseph L. Pe, Oct 22 2002 *) lst = {}; a = b = 1; Do[ a = b; b = DivisorSigma[1, n]; If[a + n == b, Print[n]; AppendTo[lst, n]], {n, 2^31}] (* Robert G. Wilson v, Jun 02 2007 *)
Extensions
a(5) from Martin Fuller, May 06 2007
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, May 31 2007
Comments