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!)
A326652 a(n) is the sum of each distinct digit in n, raised to the power of its number of appearances in n. 0
1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 3, 4, 5, 9, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 16, 9, 10, 11, 12, 13, 5, 6, 7, 8, 9, 25, 11, 12, 13, 14, 6, 7, 8, 9, 10, 11, 36, 13, 14, 15, 7, 8, 9, 10, 11, 12, 13, 49, 15, 16 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(5) = 5^1 = 5;
a(11) = 1^2 = 1;
a(12) = (1^1)+(2^1) = 1+2 = 3.
MAPLE
a:= n-> (l-> add(i^numboccur(i, l), i={l[]}))(convert(n, base, 10)):
seq(a(n), n=1..100); # Alois P. Heinz, Sep 17 2019
MATHEMATICA
a[n_] := Plus @@ Power @@@ Tally[IntegerDigits[n]]; Array[a, 100] (* Amiram Eldar, Sep 17 2019 *)
PROG
(PARI) a(n) = {my(d = digits(n), sd = Set(d)); sum(k=1, #sd, sd[k]^#select(x->(x==sd[k]), d)); } \\ Michel Marcus, Sep 17 2019
CROSSREFS
Sequence in context: A066750 A371383 A217928 * A222493 A032762 A371535
KEYWORD
nonn,base,easy
AUTHOR
David Robillard, Sep 12 2019
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 April 23 08:33 EDT 2024. Contains 371905 sequences. (Running on oeis4.)