A284927 a(n) = Sum_{d|n} (-1)^(n/d+1)*d^6.
1, 63, 730, 4031, 15626, 45990, 117650, 257983, 532171, 984438, 1771562, 2942630, 4826810, 7411950, 11406980, 16510911, 24137570, 33526773, 47045882, 62988406, 85884500, 111608406, 148035890, 188327590, 244156251, 304089030, 387952660, 474247150, 594823322
Offset: 1
Links
- Seiichi Manyama, Table of n, a(n) for n = 1..10000
- J. W. L. Glaisher, On the representations of a number as the sum of two, four, six, eight, ten, and twelve squares, Quart. J. Math. 38 (1907), 1-62 (see p. 4 and p. 8).
- Index entries for sequences mentioned by Glaisher.
Crossrefs
Programs
-
Mathematica
Table[Sum[(-1)^(n/d + 1)*d^6, {d, Divisors[n]}], {n, 50}] (* Indranil Ghosh, Apr 06 2017 *) f[p_, e_] := (p^(6*e + 6) - 1)/(p^6 - 1); f[2, e_] := (31*2^(6*e + 1) + 1)/63; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 50] (* Amiram Eldar, Nov 11 2022 *)
-
PARI
a(n) = sumdiv(n, d, (-1)^(n/d + 1)*d^6); \\ Indranil Ghosh, Apr 06 2017
-
Python
from sympy import divisors print([sum([(-1)**(n//d + 1)*d**6 for d in divisors(n)]) for n in range(1, 51)]) # Indranil Ghosh, Apr 06 2017
Formula
G.f.: Sum_{k>=1} k^6*x^k/(1 + x^k). - Ilya Gutkovskiy, Apr 07 2017
From Amiram Eldar, Nov 11 2022: (Start)
Multiplicative with a(2^e) = (31*2^(6*e+1)+1)/63, and a(p^e) = (p^(6*e+6) - 1)/(p^6 - 1) if p > 2.
Sum_{k=1..n} a(k) ~ c * n^7, where c = 9*zeta(7)/64 = 0.141799... . (End)
Extensions
Keyword:mult added by Andrew Howroyd, Jul 23 2018
Comments