OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MAPLE
a:= n-> add(i^i, i=convert(n, base, 10)):
seq(a(n), n=0..42); # Alois P. Heinz, Apr 29 2022
MATHEMATICA
f[n_]:=Module[{idn=IntegerDigits[n]/.{0->1}}, Total[idn^idn]]; Array[f, 100, 0] (* Harvey P. Dale, May 14 2012 *)
PROG
(PARI) a(n)=if(n, n=digits(n); sum(i=1, #n, n[i]^n[i]), 1) \\ Charles R Greathouse IV, Oct 07 2015
(PARI) apply( {A045503(n)=vecsum([d^d|d<-digits(n+!n)])}, [0..44]) \\ M. F. Hasler, Oct 01 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Checked by Neven Juric (neven.juric(AT)apis-it.hr), Feb 04 2008
STATUS
approved