|
|
A067040
|
|
a(n) = n^(sum of digits of n).
|
|
2
|
|
|
1, 1, 4, 27, 256, 3125, 46656, 823543, 16777216, 387420489, 10, 121, 1728, 28561, 537824, 11390625, 268435456, 6975757441, 198359290368, 6131066257801, 400, 9261, 234256, 6436343, 191102976, 6103515625, 208827064576, 7625597484987
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(12) = 12^(1 + 2) = 12^3 = 1728.
a(13) = 13^(1 + 3) = 13^4 = 28561.
|
|
MAPLE
|
a:= n-> n^add(i, i=convert(n, base, 10)):
|
|
MATHEMATICA
|
Table[n^(Plus@@IntegerDigits[n]), {n, 0, 99}] (* Alonso del Arte, Sep 14 2019 *)
|
|
PROG
|
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) } { for (n=0, 400, write("b067040.txt", n, " ", n^SumD(n)) ) } \\ Harry J. Smith, Apr 29 2010
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|