A160620 a(n) = Sum_{d|n} phi(n/d)^2*2^d.
0, 2, 6, 16, 28, 64, 96, 200, 320, 616, 1152, 2248, 4304, 8480, 16728, 33152, 66048, 131584, 263160, 524936, 1050176, 2098240, 4196952, 8389576, 16782976, 33555744, 67117920, 134220712, 268453360, 536872480, 1073780352, 2147485448, 4295034880, 8589944384
Offset: 0
Keywords
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
Programs
-
Maple
A160620 := proc(n) if n =0 then 0; else add((numtheory[phi](n/d))^2*2^d,d=numtheory[divisors](n)) ; end if ; end proc: # R. J. Mathar, Jun 24 2021
-
Mathematica
a[n_]:= If[n<1, 0, Sum[EulerPhi[n/d]^2 * 2^d, {d, Divisors[n]}]]; Table[a[n], {n,0,50}] (* G. C. Greubel, May 06 2018 *)
-
PARI
a(n) = if (n, sumdiv(n, d, eulerphi(n/d)^2*2^d), 0); \\ Michel Marcus, May 07 2018, Jun 22 2021