OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n=1..100
FORMULA
a(n) = Sum_{d|n} phi(n/d)*(n/d)^d*d!. - Michel Marcus, Mar 06 2016
MAPLE
A064649 := proc(n) local d, s; s := 0; for d in divisors(n) do s := s + phi(n/d)*(n/d)^d*d!; od; RETURN(s); end;
MATHEMATICA
a[n_] := DivisorSum[n, EulerPhi[n/#]*(n/#)^#*#!&]; Array[a, 20] (* Jean-François Alcover, Mar 06 2016 *)
PROG
(PARI) { for (n=1, 100, a=0; v=divisors(n); for (i=1, length(v), d=v[i]; a+=eulerphi(n/d)*(n/d)^d*d!); write("b064649.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 21 2009
(PARI) a(n) = sumdiv(n, d, eulerphi(n/d)*(n/d)^d*d!); \\ Michel Marcus, Mar 06 2016
(Haskell)
a064649 = sum . a047916_row -- Reinhard Zumkeller, Mar 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 04 2001
STATUS
approved