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.

A079320 CATS sequence: cube-add-then-sort variation of RATS (reverse, add then sort) sequence.

Original entry on oeis.org

1, 3, 68, 13, 222, 35, 25, 378, 11, 1234, 147, 122, 2578, 339, 1124, 349, 558, 6788, 28, 2289, 167, 1129, 13488, 1556, 1267, 1179, 1289, 12448, 237, 22289, 238, 3579, 33389, 1249, 24669, 569, 1459, 35589, 446, 26689, 1347, 5579, 22588, 1179, 23789, 1378
Offset: 2

Views

Author

Michael Joseph Halm, Feb 13 2003

Keywords

Examples

			a(8)= 25 because 8^3 + 8 = 512 + 8 = 520, sort(520) = 25.
		

Crossrefs

Cf. A004000.

Programs

  • Mathematica
    Array[FromDigits[Sort[IntegerDigits[#^3+#]]]&,50,2] (* Harvey P. Dale, Feb 28 2013 *)
  • Python
    def A079320(n):
        x=str(n+n**3)
        return int("".join(sorted(x))) # Indranil Ghosh, Jan 29 2017

Formula

a(n) = sort_digits(n^3 + n).