login
Number of partitions of n into 10 squares.
5

%I #15 Feb 19 2016 05:39:43

%S 1,1,1,1,2,2,2,2,3,4,4,3,4,5,4,4,6,6,7,6,7,8,8,7,9,11,10,10,11,12,12,

%T 12,13,15,16,13,17,18,17,17,20,20,21,20,20,25,23,22,25,27,27,26,29,30,

%U 33,31,32,36,37,33,35,40,38,40,41,42,46,43,44,49,50,47,54,54,54,54,55,58,60,61

%N Number of partitions of n into 10 squares.

%H Alois P. Heinz, <a href="/A025425/b025425.txt">Table of n, a(n) for n = 0..10000</a>

%p b:= proc(n, i, t) option remember; `if`(n=0, 1,

%p `if`(i<1 or t<1, 0, b(n, i-1, t)+

%p `if`(i^2>n, 0, b(n-i^2, i, t-1))))

%p end:

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

%p seq(a(n), n=0..120); # _Alois P. Heinz_, May 30 2014

%t a[n_] := PowersRepresentations[n, 10, 2] // Length; Array[a, 120, 0] (* _Jean-François Alcover_, Feb 19 2016 *)

%Y Cf. A001156.

%K nonn

%O 0,5

%A _David W. Wilson_