cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A046156 Limit set for operation of repeatedly replacing a number with the sum of the cubes of its digits.

Original entry on oeis.org

0, 1, 55, 133, 136, 153, 160, 217, 244, 250, 352, 370, 371, 407, 919, 1459
Offset: 1

Views

Author

Richard C. Schroeppel

Keywords

Comments

Range of A165330; A165330(a(n))=a(n); A165331(a(n))=0. - Reinhard Zumkeller, Sep 17 2009

Crossrefs

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 *)