srodniki
- 2
- 0
Hi there,
I know that the number of solutions of a_{1}+a_{2}+...a_{n}=k where a_{i} are non-negative integers is just \binom{n+k-1}{k}.
Now, given a m\times n matrix with non negative integers a_{ij}, how many solutions are there for the following kind of system?
\begin{array}{ccccccccc}<br /> s_{1} & & s_{2} & & & & s_{n}\\<br /> \shortparallel & & \shortparallel & & & & \shortparallel\\<br /> a_{11} & + & a_{12} & + & ... & + & a_{1n} & = & k_{1}\\<br /> + & & + & & & & +\\<br /> a_{21} & + & a_{22} & + & ... & + & a_{2n} & = & k_{2}\\<br /> + & & + & & & & +\\<br /> \vdots & & \vdots & & & & \vdots\\<br /> + & & + & & & & +\\<br /> a_{m1} & + & a_{m2} & + & ... & + & a_{mn} & = & k_{m}<br /> \end{array}
The sum of each row and each column is constrained by the known non-negative integers k_{i} and s_{i}.
Without the column restriction we would have \prod_{i=1}^{m}\binom{n+k_{i}-1}{k_{i}}.
Thanks a lot.
I know that the number of solutions of a_{1}+a_{2}+...a_{n}=k where a_{i} are non-negative integers is just \binom{n+k-1}{k}.
Now, given a m\times n matrix with non negative integers a_{ij}, how many solutions are there for the following kind of system?
\begin{array}{ccccccccc}<br /> s_{1} & & s_{2} & & & & s_{n}\\<br /> \shortparallel & & \shortparallel & & & & \shortparallel\\<br /> a_{11} & + & a_{12} & + & ... & + & a_{1n} & = & k_{1}\\<br /> + & & + & & & & +\\<br /> a_{21} & + & a_{22} & + & ... & + & a_{2n} & = & k_{2}\\<br /> + & & + & & & & +\\<br /> \vdots & & \vdots & & & & \vdots\\<br /> + & & + & & & & +\\<br /> a_{m1} & + & a_{m2} & + & ... & + & a_{mn} & = & k_{m}<br /> \end{array}
The sum of each row and each column is constrained by the known non-negative integers k_{i} and s_{i}.
Without the column restriction we would have \prod_{i=1}^{m}\binom{n+k_{i}-1}{k_{i}}.
Thanks a lot.