OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
a(143) = a(11*13) = a(11)*a(13) = (1+1)*(1+3) = 2*4 = 8.
MAPLE
a:= n-> mul(add(j, j=convert(i[1], base, 10))^i[2], i=ifactors(n)[2]):
seq(a(n), n=1..72); # Alois P. Heinz, Oct 22 2021
MATHEMATICA
a[n_] := Product[{p, e} = pe; Total[IntegerDigits[p]]^e, {pe, FactorInteger[n]}];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Oct 22 2021 *)
PROG
(PARI) a(n, base=10) = my (f=factor(n)); prod(i=1, #f~, sumdigits(f[i, 1], base)^f[i, 2]) \\ Rémy Sigrist, Feb 19 2019
CROSSREFS
KEYWORD
nonn,base,mult
AUTHOR
Reinhard Zumkeller, Jun 06 2002
STATUS
approved