cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A103919 Triangle of numbers of partitions of n with total number of odd parts equal to k from {0,...,n}.

This page as a plain text file.
%I A103919 #66 Jun 21 2021 00:05:38
%S A103919 1,0,1,1,0,1,0,2,0,1,2,0,2,0,1,0,4,0,2,0,1,3,0,5,0,2,0,1,0,7,0,5,0,2,
%T A103919 0,1,5,0,9,0,5,0,2,0,1,0,12,0,10,0,5,0,2,0,1,7,0,17,0,10,0,5,0,2,0,1,
%U A103919 0,19,0,19,0,10,0,5,0,2,0,1,11,0,28,0,20,0,10,0,5,0,2,0,1,0,30,0,33,0,20,0,10,0,5,0,2,0,1
%N A103919 Triangle of numbers of partitions of n with total number of odd parts equal to k from {0,...,n}.
%C A103919 The partition (0) of n=0 is included. For n>0 no part 0 appears.
%C A103919 The first (k=0) column gives the number of partitions without odd parts, i.e., those with even parts only. See A035363.
%C A103919 Without the alternating zeros this becomes a triangle with columns given by the rows of the S_n(m) table shown in the Riordan reference.
%C A103919 From _Gregory L. Simay_, Oct 31 2015: (Start)
%C A103919 T(2n+k,k) = the number of partitions of n with parts 1..k of two kinds. If n<=k, then T(2n+k) = A000712(n), the number of partitions of n with parts of two kinds.
%C A103919 T(2n+k) = the convolution of A000041(n) and the number of partitions of n+k having exactly k parts.
%C A103919 T(2n+k) = d(n,k) where d(n,0) = p(n) and d(n,k) = d(n,k-1) + d(n-k,k-1) + d(n-2k,k-1) + ... (End)
%C A103919 From _Emeric Deutsch_, Oct 04 2016: (Start)
%C A103919 T(n,k) = number of partitions (p1 >= p2 >= p3 >= ...) of n having alternating sum p1 - p2 + p3 - ... = k. Example: T(5,3) = 2 because there are two partitions (3,1,1) and (4,1) of 5 with alternating sum 3.
%C A103919 The equidistribution of the partition statistics "alternating sum" and "total number of odd parts" follows by conjugation. (End)
%D A103919 J. Riordan, Combinatorial Identities, Wiley, 1968, p. 199.
%H A103919 Alois P. Heinz, <a href="/A103919/b103919.txt">Rows n = 0..140, flattened</a>
%H A103919 D. Kim, A. J. Yee, <a href="http://dx.doi.org/10.1023/A:1006905826378">A note on partitions into distinct parts and odd parts</a>, Ramanujan J. 3 (1999), 227-231. [_R. J. Mathar_, Nov 11 2008]
%H A103919 Wolfdieter Lang, <a href="/A103919/a103919.pdf"> First 11 rows.</a>
%F A103919 a(n, k) = number of partitions of n>=0, which have exactly k odd parts (and possibly even parts) for k from {0, ..., n}.
%F A103919 Sum_{k=0..n} k*T(n,k) = A066897(n). - _Emeric Deutsch_, Feb 17 2006
%F A103919 G.f.: G(t,x) = 1/Product_{j>=1} (1-t*x^(2*j-1))*(1-x^(2*j)). - _Emeric Deutsch_, Feb 17 2006
%F A103919 G.f. T(2n+k,k) = g.f. d(n,k) = (1/Product_{j=1..k} (1-x^j)) * g.f. p(n). - _Gregory L. Simay_, Oct 31 2015
%F A103919 T(n,k) = T(n-1,k-1) + T(n-2k,k). - _Gregory L. Simay_, Nov 01 2015
%e A103919 The triangle a(n,k) begins:
%e A103919 n\k 0  1  2  3  4  5  6  7  8  9 10
%e A103919 0:  1
%e A103919 1:  0  1
%e A103919 2:  1  0  1
%e A103919 3:  0  2  0  1
%e A103919 4:  2  0  2  0  1
%e A103919 5:  0  4  0  2  0  1
%e A103919 6:  3  0  5  0  2  0  1
%e A103919 7:  0  7  0  5  0  2  0  1
%e A103919 8:  5  0  9  0  5  0  2  0  1
%e A103919 9:  0 12  0 10  0  5  0  2  0  1
%e A103919 10: 7  0 17  0 10  0  5  0  2  0  1
%e A103919 ... Reformatted - _Wolfdieter Lang_, Apr 28 2013
%e A103919 a(0,0) = 1 because n=0 has no odd part, only one even part, 0, by definition. a(5,3) = 2 because there are two partitions (1,1,3) and (1,1,1,2) of 5 with exactly 3 odd parts.
%e A103919 From _Gregory L. Simay_, Oct 31 2015: (Start)
%e A103919 T(10,4) = T(2*3+4,4) = d(3,4) = A000712(3) = 10.
%e A103919 T(10,2) = T(2*4+2,2) = d(4,2) = d(4,1)+d(2,1)+d(0,1) = d(4,0)+d(3,0)+d(2,0)+d(1,0)+d(0,0) + d(2,0)+d(1,0)+d(0,0) + d(0,0) = convolution sum p(4)+p(3)+2*p(2)+2*p(1)+3*p(0) = 5+3+2*2+2*1+3*1 = 17.
%e A103919 T(9,1) = T(8,0) + T(7,1) = 5 + 7 = 12.
%e A103919 (End)
%p A103919 g:=1/product((1-t*x^(2*j-1))*(1-x^(2*j)),j=1..20): gser:=simplify(series(g,x=0,22)): P[0]:=1: for n from 1 to 18 do P[n]:=coeff(gser,x^n) od: for n from 0 to 18 do seq(coeff(P[n],t,j),j=0..n) od; # yields sequence in triangular form # _Emeric Deutsch_, Feb 17 2006
%t A103919 T[n_, k_] := T[n, k] = Which[n<k, 0, n == k, 1, Mod[n-k+1, 2] == 0, 0, k == 0, Sum[T[Quotient[n, 2], m], {m, 0, n}], True, T[n-1, k-1]+T[n-2*k, k]]; Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* _Jean-François Alcover_, Mar 05 2014, after _Paul D. Hanna_ *)
%t A103919 Table[Length[Select[IntegerPartitions[n],Count[#,_?OddQ]==k&]],{n,0,15},{k,0,n}] (* _Gus Wiseman_, Jun 20 2021 *)
%o A103919 (PARI)
%o A103919 {T(n, k)=if(n>=k, if(n==k, 1, if((n-k+1)%2==0, 0, if(k==0, sum(m=0, n, T(n\2, m)), T(n-1, k-1)+T(n-2*k, k)))))}
%o A103919 for(n=0, 20, for(k=0, n, print1(T(n, k), ", ")); print(""))
%o A103919 \\ _Paul D. Hanna_, Apr 27 2013
%Y A103919 Row sums gives A000041 (partition numbers). Columns: k=0: A035363 (with zero entries) A000041 (without zero entries), k=1: A000070, k=2: A000097, k=3: A000098, k=4: A000710, 3k>=n: A000712.
%Y A103919 Cf. A066897.
%Y A103919 The strict version (without zeros) is A152146 interleaved with A152157.
%Y A103919 The rows (without zeros) are A239830 interleaved with A239829.
%Y A103919 The reverse version (without zeros) is the right half of A344612.
%Y A103919 Removing all zeros gives A344651.
%Y A103919 The strict reverse version (without zeros) is the right half of A344739.
%Y A103919 Cf. A006330, A027187, A116406, A344607, A344608, A344649, A344654.
%K A103919 nonn,easy,tabl
%O A103919 0,8
%A A103919 _Wolfdieter Lang_, Mar 24 2005