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

A361695
Number of ways of writing n^2 as a sum of seven squares.
2
1, 14, 574, 3542, 18494, 43414, 145222, 235998, 591934, 860846, 1779974, 2256422, 4678982, 5195750, 9675918, 10983742, 18942014, 19873966, 35294686, 34670454, 57349894, 59707494, 92513302, 90116222, 149759302, 135668414, 213025750, 209185718, 311753358, 287144326, 450333422
OFFSET
0,2
FORMULA
a(n) = [x^(n^2)] (Sum_{j=-n..n} x^(j^2))^7.
a(n) = A008451(n^2).
a(n) = A302996(n,7).
MAPLE
a:= n-> coeff((sum(x^(j^2), j=-n..n))^7, x, n^2):
seq(a(n), n=0..30);
# second Maple program:
b:= proc(n, t) option remember; `if`(n=0, 1, `if`(n<0 or t<1, 0,
b(n, t-1) +2*add(b(n-j^2, t-1), j=1..isqrt(n))))
end:
a:= n-> b(n^2, 7):
seq(a(n), n=0..30);
CROSSREFS
Column k=7 of A302996.
Sequence in context: A217582 A002010 A166185 * A349766 A269478 A269645
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 22 2023
STATUS
approved