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!)
A342543 a(n) = Sum_{k=1..n} phi(gcd(k, n))^gcd(k, n). 4
1, 2, 10, 19, 1028, 76, 279942, 65558, 10077718, 1049608, 100000000010, 16777334, 106993205379084, 78364444044, 35184372090920, 281474976776236, 295147905179352825872, 101559966746268, 708235345355337676357650, 1152921504607897676, 46005119909369702026044, 10000000000100000000020 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = Sum_{d|n} phi(n/d) * phi(d)^d.
If p is prime, a(p) = p-1 + (p-1)^p.
MATHEMATICA
a[n_] := DivisorSum[n, EulerPhi[n/#] * EulerPhi[#]^# &]; Array[a, 20] (* Amiram Eldar, Mar 15 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, eulerphi(gcd(k, n))^gcd(k, n));
(PARI) a(n) = sumdiv(n, d, eulerphi(n/d)*eulerphi(d)^d);
CROSSREFS
Sequence in context: A299577 A259096 A317859 * A342539 A346810 A347024
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 15 2021
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 25 21:09 EDT 2024. Contains 371989 sequences. (Running on oeis4.)