%I #29 Sep 27 2019 15:46:26
%S 1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,1,
%T 0,1,0,1,1,1,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,0,1,0,1,1,1,1,0,1,0,1,0,1,
%U 2,1,1,1,1,1,0,1,0,1
%N TNP(n,k) triangle read by rows. TNP(n,k) is the number of triangular-number partitions of n with k parts.
%C The nonzero triangular numbers are of the form binomial(n, 2) for n = 2, 3, 4, ... namely: 1, 3, 6, 10, 15, 21, 28, ....
%C A triangular-number partition of n is a partition of n all of whose parts are triangular numbers. For example, (7 =) 1+6 = 1+3+3 = 1+1+1+1+3 are three different triangular-number partitions of 7; the first has 2 parts, the second has 3 parts, and the third has 5 parts.
%C TNP(n, k) is the number of triangular-number partitions of n with k parts.
%C This sequence is the TNP(n, k) triangle read by rows.
%H Andrew Howroyd, <a href="/A181506/b181506.txt">Table of n, a(n) for n = 1..1275</a>
%H John P. McSorley and Alan H. Schoen, <a href="http://dx.doi.org/10.1016/j.disc.2012.08.021">Rhombic tilings of (n,k)-ovals, (n, k, lambda)-cyclic difference sets, and related topics</a>, Discrete Math., 313 (2013), 129-154.
%F G.f.: 1 / Product_{k>=1} (1 - z*x^T(k)) where T(k) = A000217(k). - _Joerg Arndt_, Aug 10 2015
%e The triangle begins
%e 1
%e 0 1
%e 1 0 1
%e 0 1 0 1
%e 0 0 1 0 1
%e 1 1 0 1 0 1
%e 0 1 1 0 1 0 1
%e 0 0 1 1 0 1 0 1
%e 0 1 1 1 1 0 1 0 1
%e 1 0 1 1 1 1 0 1 0 1
%e 0 1 0 1 1 1 1 0 1 0 1
%e 0 1 2 1 1 1 1 1 0 1 0 1
%e For example, row 12 is 0 1 2 1 1 1 1 1 0 1 0 1.
%e We have TNP(12, 1) = 0 because 12 is not a triangular number.
%e We have TNP(12, 2) = 1 because 6+6 is the unique triangular-number partition of 12 with 2 parts.
%e And we have TNP(12, 3) = 2 because 3+3+6 and 1+1+10 are the 2 triangular-number partitions of 12 with 3 parts.
%o (PARI) T(n)={[Vecrev(p/y) | p<-Vec(-1 + 1/prod(k=1, (sqrtint(8*n+1)-1)\2, 1 - y*x^binomial(k+1,2) + O(x*x^n)))]}
%o { my(A=T(12)); for(n=1, #A, print(A[n])) } \\ _Andrew Howroyd_, Sep 26 2019
%Y The row sums of the TNP(n, k) triangle give sequence A007294; the n-th term of A007294 is the total number of triangular-number partitions of n.
%K nonn,tabl
%O 1,69
%A _John P. McSorley_, Oct 24 2010