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”).

A372939
a(n) = Sum_{1 <= x_1, x_2, ... , x_n <= n} gcd(x_1, x_2, ... , x_n, n)^n.
1
1, 7, 53, 736, 6249, 185039, 1647085, 66912256, 1162222101, 39980466703, 570623341221, 53487845236736, 605750213184505, 44446670856053599, 1751575500459583437, 92232594468640915456, 1654480523772673528353, 236077997761634282622495
OFFSET
1,2
FORMULA
a(n) = Sum_{d|n} mu(n/d) * d^n * tau(d), where mu is the Moebius function A008683.
PROG
(PARI) a(n) = sumdiv(n, d, moebius(n/d)*d^n*numdiv(d));
CROSSREFS
Main diagonal of A372938.
Sequence in context: A092802 A062207 A073564 * A194929 A317689 A116202
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 17 2024
STATUS
approved