OFFSET
1,2
COMMENTS
a(n) = Sum_{(x,y): 1<=x<=y<=n, 1=gcd(x,y)} y. Sum_{(x,y): 1<=x<=y<=n, 1=gcd(x,y)} x = (a(n)+1)/2. - Vladeta Jovovic, Jan 02 2003
Equals row sums of triangle A110663. Example: a(4) = 17 = (6 + 5 + 4 + 2), where row 4 of triangle A110663 = (6, 5, 4, 2). - Gary W. Adamson, Jul 26 2008
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000 (terms 1..2001 from Indranil Ghosh)
FORMULA
Asymptotically: a(n) ~ C*n^3 with C=0.20264.... - Benoit Cloitre, Jan 14 2002
Asymptotically: a(n) ~ (2/Pi^2)*n^3. - Vladeta Jovovic, Jan 02 2003
a(n) = Sum_{k=1..n} phi(k^2). - Vaclav Kotesovec, May 08 2024
MATHEMATICA
Accumulate[Table[k*EulerPhi[k], {k, 1, 50}]] (* Vaclav Kotesovec, Sep 10 2018 *)
PROG
(PARI) a(n) = sum(k=1, n, k*eulerphi(k)); \\ Michel Marcus, Feb 13 2017
(Python)
from sympy import totient
def A011755(n): return sum(k*totient(k) for k in range(1, n+1)) # Chai Wah Wu, Feb 21 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved