OFFSET
0,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
EXAMPLE
a(7) = 25 because 7^7 = 823543 and 8 + 2 + 3 + 5 + 4 + 3 = 25.
MAPLE
a:= n-> add(i, i=convert(n^n, base, 10)):
seq(a(n), n=0..60); # Alois P. Heinz, Oct 06 2023
MATHEMATICA
Table[Plus@@IntegerDigits@(n^n), {n, 80}] (* Vincenzo Librandi, Jun 18 2015 *)
PROG
(PARI) a(n) = sumdigits(n^n) \\ Michel Marcus, Jun 18 2015
(Magma) [&+Intseq((n^n)): n in [0..80] ]; // Vincenzo Librandi, Jun 18 2015
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert A. Stump (bee_ess107(AT)yahoo.com), Jan 07 2002
EXTENSIONS
More terms from Paolo P. Lava, May 15 2007
a(0)=1 inserted by Sean A. Irvine, Oct 06 2023
STATUS
approved