OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
A. Frank & P. Jacqueroux, International Contest, 2001. Item 24
FORMULA
EXAMPLE
a(4) = 4^3 + sum of digits of 4^3 = 64 + (6 + 4) = 74.
MATHEMATICA
#+Total[IntegerDigits[#]]&/@(Range[40]^3) (* Harvey P. Dale, Nov 06 2019 *)
PROG
(PARI) a(n) = my(d = digits(n^3)); n^3 + sum(i=1, #d, d[i]); \\ Michel Marcus, Dec 02 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Herman Jamke (hermanjamke(AT)fastmail.fm), Sep 30 2006
STATUS
approved