login
A025422
Number of partitions of n into 7 squares.
15
1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 2, 3, 4, 3, 3, 4, 4, 5, 4, 5, 6, 6, 4, 5, 7, 6, 6, 7, 8, 8, 7, 6, 8, 9, 7, 10, 11, 10, 9, 10, 10, 11, 10, 10, 15, 12, 10, 11, 13, 14, 12, 15, 16, 18, 15, 13, 16, 17, 14, 16, 20, 17, 18, 16, 18, 21, 18, 19, 23, 24, 18, 21, 21, 22, 22, 23, 26, 25, 24, 21, 27, 27, 23
OFFSET
0,5
LINKS
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, 1,
`if`(i<1 or t<1, 0, b(n, i-1, t)+
`if`(i^2>n, 0, b(n-i^2, i, t-1))))
end:
a:= n-> b(n, isqrt(n), 7):
seq(a(n), n=0..120); # Alois P. Heinz, May 30 2014
MATHEMATICA
b[n_, i_, t_] := b[n, i, t] = If[n == 0, 1, If[i<1 || t<1, 0, b[n, i-1, t] + If[i^2 > n, 0, b[n-i^2, i, t-1]]]]; a[n_] := b[n, Sqrt[n] // Floor, 7]; Table[a[n], {n, 0, 120}] (* Jean-François Alcover, Jun 11 2015, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A084294 A067752 A229942 * A078640 A006374 A193677
KEYWORD
nonn
STATUS
approved