OFFSET
2,1
LINKS
Robert Israel, Table of n, a(n) for n = 2..10000
MAPLE
P:= [seq(k^2*numtheory:-phi(k), k=1..100)]:
T:= ListTools:-PartialSums(P):
seq(T[i-1]+P[i]/2, i=2..100); # Robert Israel, Mar 24 2020
PROG
(PARI) a(n) = sum(k=1, n-1, k^2*eulerphi(k)) + n^2*eulerphi(n)/2; \\ Michel Marcus, Mar 23 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 23 2020
STATUS
approved