Number of matrices with entries in $0,1,2$ with prescribed row and column sums
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I want to count the number of $ell_1timesell_2$ matrices with entries in $0,1,2$ and prescribed sum of entries for each row and column.
For example, there are three $2times 2$ matrices with row and column sums equal to 2:
$$beginpmatrix2&0\0&2endpmatrix,beginpmatrix0&2\2&0endpmatrix,beginpmatrix1&1\1&1endpmatrix$$
There are 21 $3times 3$ matrices with row and column sums equal to 2 - not listed here, but you can check in GAP using the following command:
gap> R:=Filtered(Tuples([0,1,2],3),r->Sum(r)=2);
gap> Q:=Filtered(Tuples(R,3),M->ForAll(TransposedMat(M),r->Sum(r)=2));
gap> Size(Q);
I also found a paper by Wang and Zhang (1997) for the number of matrices with entries in $0,1$ with prescribed row and column sums, so I am wondering how I can extend it to $0,1,2$.
combinatorics matrices
add a comment |Â
up vote
2
down vote
favorite
I want to count the number of $ell_1timesell_2$ matrices with entries in $0,1,2$ and prescribed sum of entries for each row and column.
For example, there are three $2times 2$ matrices with row and column sums equal to 2:
$$beginpmatrix2&0\0&2endpmatrix,beginpmatrix0&2\2&0endpmatrix,beginpmatrix1&1\1&1endpmatrix$$
There are 21 $3times 3$ matrices with row and column sums equal to 2 - not listed here, but you can check in GAP using the following command:
gap> R:=Filtered(Tuples([0,1,2],3),r->Sum(r)=2);
gap> Q:=Filtered(Tuples(R,3),M->ForAll(TransposedMat(M),r->Sum(r)=2));
gap> Size(Q);
I also found a paper by Wang and Zhang (1997) for the number of matrices with entries in $0,1$ with prescribed row and column sums, so I am wondering how I can extend it to $0,1,2$.
combinatorics matrices
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I want to count the number of $ell_1timesell_2$ matrices with entries in $0,1,2$ and prescribed sum of entries for each row and column.
For example, there are three $2times 2$ matrices with row and column sums equal to 2:
$$beginpmatrix2&0\0&2endpmatrix,beginpmatrix0&2\2&0endpmatrix,beginpmatrix1&1\1&1endpmatrix$$
There are 21 $3times 3$ matrices with row and column sums equal to 2 - not listed here, but you can check in GAP using the following command:
gap> R:=Filtered(Tuples([0,1,2],3),r->Sum(r)=2);
gap> Q:=Filtered(Tuples(R,3),M->ForAll(TransposedMat(M),r->Sum(r)=2));
gap> Size(Q);
I also found a paper by Wang and Zhang (1997) for the number of matrices with entries in $0,1$ with prescribed row and column sums, so I am wondering how I can extend it to $0,1,2$.
combinatorics matrices
I want to count the number of $ell_1timesell_2$ matrices with entries in $0,1,2$ and prescribed sum of entries for each row and column.
For example, there are three $2times 2$ matrices with row and column sums equal to 2:
$$beginpmatrix2&0\0&2endpmatrix,beginpmatrix0&2\2&0endpmatrix,beginpmatrix1&1\1&1endpmatrix$$
There are 21 $3times 3$ matrices with row and column sums equal to 2 - not listed here, but you can check in GAP using the following command:
gap> R:=Filtered(Tuples([0,1,2],3),r->Sum(r)=2);
gap> Q:=Filtered(Tuples(R,3),M->ForAll(TransposedMat(M),r->Sum(r)=2));
gap> Size(Q);
I also found a paper by Wang and Zhang (1997) for the number of matrices with entries in $0,1$ with prescribed row and column sums, so I am wondering how I can extend it to $0,1,2$.
combinatorics matrices
asked Aug 22 at 11:28
Alvin
564
564
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2890937%2fnumber-of-matrices-with-entries-in-0-1-2-with-prescribed-row-and-column-su%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password