OFFSET
2,2
LINKS
Harvey P. Dale and Indranil Ghosh, Table of n, a(n) for n = 2..20000 (terms 2..1000 from Harvey P. Dale)
M. J. Halm, Sequences
FORMULA
a(n) = sort_digits(n^3 + n).
EXAMPLE
a(8)= 25 because 8^3 + 8 = 512 + 8 = 520, sort(520) = 25.
MATHEMATICA
Array[FromDigits[Sort[IntegerDigits[#^3+#]]]&, 50, 2] (* Harvey P. Dale, Feb 28 2013 *)
PROG
(Python)
def A079320(n):
....x=str(n+n**3)
....return int("".join(sorted(x))) # Indranil Ghosh, Jan 29 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michael Joseph Halm, Feb 13 2003
STATUS
approved