OFFSET
0,4
EXAMPLE
The a(5) = 14 matrices:
[5] [4 1] [3 2]
.
[4] [4 0] [3 1] [3 1] [3] [3 0] [3 0] [2 2] [2 1] [2 1] [1 2]
[1] [0 1] [1 0] [0 1] [2] [1 1] [0 2] [1 0] [2 0] [1 1] [2 0]
MATHEMATICA
prs2mat[prs_]:=Table[Count[prs, {i, j}], {i, Union[First/@prs]}, {j, Union[Last/@prs]}];
multsubs[set_, k_]:=If[k==0, {{}}, Join@@Table[Prepend[#, set[[i]]]&/@multsubs[Drop[set, i-1], k-1], {i, Length[set]}]];
Table[Length[Select[multsubs[Tuples[Range[n], 2], n], And[Union[First/@#]==Range[Max@@First/@#], Union[Last/@#]==Range[Max@@Last/@#], OrderedQ[Total/@prs2mat[#], Greater], OrderedQ[Total/@Transpose[prs2mat[#]], Greater]]&]], {n, 6}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Nov 15 2018
STATUS
approved