OFFSET
1,3
COMMENTS
See A122618 for notation.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
a:= n-> (b-> (l-> add(l[i]*b^(i-1), i=1..nops(l)))(
convert(b, base, 10)))(numtheory[phi](n)):
seq(a(n), n=1..80); # Alois P. Heinz, Jul 04 2022
PROG
(PARI)
A122618(n, d=digits(n)) = d*vectorv(#d, i, n^(#d-i)); \\ M. F. Hasler, Apr 22 2015
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Sep 21 2006
STATUS
approved