OFFSET
1,2
COMMENTS
s(n) stands for the sum of the digits of n.
FORMULA
s(n)+s(n^2)=s(n^3)
EXAMPLE
45 is in the sequence because (1) the sum of the digits is 4+5=9, (2) the sum of the digits of 45^2 = 2025 is 2+0+2+5=9, (3) the sum of the digits of 45^3=91125 is 9+1+1+2+5=18 and (4) 9+9=18
MATHEMATICA
dgsQ[n_]:=Total[IntegerDigits[n]]+Total[IntegerDigits[n^2]]== Total[ IntegerDigits[ n^3]]; Select[Range[0, 900], dgsQ] (* Harvey P. Dale, Aug 02 2011 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 04 2006
STATUS
approved