login
A066236
Numbers n such that the sum of digits of n^n is a square.
1
0, 1, 2, 3, 7, 10, 61, 80, 100, 121, 174, 182, 200, 276, 313, 432, 441, 463, 537, 612, 666, 739, 775, 961, 1000, 1239, 1382, 1413, 1952, 2000, 2232, 2427, 2594, 2935, 3195, 3337, 3381, 3542, 4438, 4566, 4630, 4818, 5266, 5352, 5745, 6363, 7026, 7538, 8142
OFFSET
1,3
LINKS
MATHEMATICA
fQ[n_] := IntegerQ[ Sqrt[ Plus @@ IntegerDigits[n^n]]]; Do[ If[ fQ[n], Print[n]], {n, 8498}] (* Robert G. Wilson v, Nov 23 2004 *)
PROG
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) } { n=0; for (m=0, 10^9, if (issquare(SumD(m^m)), write("b066236.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 07 2010
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Dec 19 2001
EXTENSIONS
More terms from Robert G. Wilson v, Nov 23 2004
STATUS
approved