login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A344525
a(n) = Sum_{1 <= x_1, x_2, ... , x_n <= n} gcd(x_1,x_2, ... ,x_n).
6
1, 5, 30, 276, 3165, 47521, 826000, 16843792, 387723045, 10009889889, 285360865350, 8918311872516, 302888304741841, 11112685595264369, 437898699063881208, 18447025862624951488, 827242515246907227633, 39346558373191515582161
OFFSET
1,2
LINKS
FORMULA
a(n) = Sum_{k=1..n} phi(k) * floor(n/k)^n.
a(n) ~ n^n. - Vaclav Kotesovec, May 23 2021
MATHEMATICA
a[n_] := Sum[EulerPhi[k] * Quotient[n, k]^n, {k, 1, n}]; Array[a, 20] (* Amiram Eldar, May 22 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, eulerphi(k)*(n\k)^n);
(Python)
from sympy import totient
def A344525(n): return sum(totient(k)*(n//k)**n for k in range(1, n+1)) # Chai Wah Wu, Aug 05 2024
CROSSREFS
Main diagonal of A344479.
Sequence in context: A353547 A199131 A342389 * A277464 A258300 A276752
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 22 2021
STATUS
approved