login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A321653 Number of nonnegative integer matrices with sum of entries equal to n and no zero rows or columns, with strictly decreasing row sums and column sums. 9
1, 1, 1, 5, 5, 14, 44, 72, 147, 381, 1405 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
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
Sequence in context: A317617 A294750 A304300 * A247940 A061200 A255304
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Nov 15 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 13:56 EDT 2024. Contains 371731 sequences. (Running on oeis4.)