OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
For n=31, n^3=29791, sum of digits of cube is 2+9+7+9+1=28, sum of cube of digits is 3^3+1=27+1=28, thus 31 appears in the sequence.
MATHEMATICA
Select[Range[0, 13000], Total[IntegerDigits[#^3]]==Total[IntegerDigits[ #]^3]&] (* Harvey P. Dale, Nov 13 2011 *)
PROG
cubdigsum(n) = local(s=0); while(n, s=s+(n%10)^3; n=n\10); return(s)
for(n=0, 100000, if(cubdigsum(n)==sumdigits(n^3), print1(n, ", ") ) )
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Rémy Sigrist, Sep 21 2009
STATUS
approved