login
Number of ways to write n as an ordered sum of 7 squares of positive integers.
10

%I #21 Feb 04 2021 15:26:12

%S 1,0,0,7,0,0,21,0,7,35,0,42,35,0,105,28,21,140,49,105,105,106,210,84,

%T 182,210,217,287,105,420,378,126,497,392,420,532,350,630,714,434,546,

%U 980,742,609,980,896,1071,882,875,1470,1239,1099,1155,1722,1652,882,1933,1995,1554,2072,1505

%N Number of ways to write n as an ordered sum of 7 squares of positive integers.

%H Alois P. Heinz, <a href="/A340906/b340906.txt">Table of n, a(n) for n = 7..20000</a>

%H <a href="/index/Su#ssq">Index entries for sequences related to sums of squares</a>

%F G.f.: (theta_3(x) - 1)^7 / 128, where theta_3() is the Jacobi theta function.

%p b:= proc(n, t) option remember;

%p `if`(n=0, `if`(t=0, 1, 0), `if`(t<1, 0, add((s->

%p `if`(s>n, 0, b(n-s, t-1)))(j^2), j=1..isqrt(n))))

%p end:

%p a:= n-> b(n, 7):

%p seq(a(n), n=7..67); # _Alois P. Heinz_, Jan 31 2021

%t nmax = 67; CoefficientList[Series[(EllipticTheta[3, 0, x] - 1)^7/128, {x, 0, nmax}], x] // Drop[#, 7] &

%Y Cf. A000290, A008451, A010052, A025431, A045849, A063691, A063725, A063730, A340481, A340905, A340915, A340946, A340947.

%Y Column k=7 of A337165.

%K nonn

%O 7,4

%A _Ilya Gutkovskiy_, Jan 31 2021