login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045512 If decimal expansion of n is ab...d, a(n) = a^a + b^b + ... + d^d (ignoring any 0's). 4
0, 1, 4, 27, 256, 3125, 46656, 823543, 16777216, 387420489, 1, 2, 5, 28, 257, 3126, 46657, 823544, 16777217, 387420490, 4, 5, 8, 31, 260, 3129, 46660, 823547, 16777220, 387420493, 27, 28, 31, 54, 283, 3152, 46683, 823570, 16777243, 387420516, 256, 257, 260 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
MAPLE
a:= n-> add(`if`(i=0, 0, i^i), i=convert(n, base, 10)):
seq(a(n), n=0..42); # Alois P. Heinz, Apr 29 2022
MATHEMATICA
p[n_]:=Module[{idn=Select[IntegerDigits[n], #>0&]}, Total[idn^idn]]; Array[p, 40, 0] (* Harvey P. Dale, Dec 13 2012 *)
CROSSREFS
Cf. A045503.
Sequence in context: A226272 A086756 A061510 * A055207 A214877 A067041
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Checked by Neven Juric (neven.juric(AT)apis-it.hr), Feb 04 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 19 07:41 EDT 2024. Contains 370958 sequences. (Running on oeis4.)