A126016 Numbers whose aliquot sequence does not terminate in 1.
6, 25, 28, 95, 119, 143, 220
Offset: 1
Links
- Eric Weisstein's World of Mathematics, Aliquot Sequence
- P. Zimmermann, Latest information
Crossrefs
Programs
-
Mathematica
maxAliquot = 10^45; A131884 = {}; s[1] = 1; s[n_] := DivisorSigma[1, n] - n; selQ[n_ /; n <= 5] = True; selQ[n_] := NestWhile[s, n, If[{##}[[-1]] > maxAliquot, Print["A131884: ", n]; AppendTo[A131884, n]; False, Length[{##}] < 4 || {##}[[-4 ;; -3]] != {##}[[-2 ;; -1]]] & , All] == 1; Reap[For[k = 1, k < 1100, k++, If[!selQ[k], Print[k]; Sow[k]]]][[2, 1]]
Comments