A038178 Numbers k such that k = (sum of digits of k)^(number of digits of k).
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 81, 512, 2401
Offset: 1
Examples
512 is in the sequence because (5 + 1 + 2)^3 = 512.
Programs
-
Mathematica
Select[Range[2500],#==Total[IntegerDigits[#]]^IntegerLength[#]&] (* Harvey P. Dale, Oct 26 2011 *)
Comments