A046156 Limit set for operation of repeatedly replacing a number with the sum of the cubes of its digits.
0, 1, 55, 133, 136, 153, 160, 217, 244, 250, 352, 370, 371, 407, 919, 1459
Offset: 1
Programs
-
Mathematica
lst = {}; k = 0; While[k < 1500, a = NestWhile[Plus @@ (IntegerDigits@ #^3) &, k, Unequal, All]; If[FreeQ[lst, a], AppendTo[lst, a]]; k++]; Sort@ lst (* Robert G. Wilson v, Jan 19 2006, revised Jan 03 2015 *) Table[Nest[Total[IntegerDigits[#]^3]&,n,30],{n,0,1500}]//Union (* Harvey P. Dale, Aug 04 2018 *)
Comments