找回密码
 快速注册
搜索
查看: 76|回复: 4

[组合] 每行、每列都是顺序的矩阵

[复制链接]

3147

主题

8381

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65357
QQ

显示全部楼层

hbghlyj 发表于 2022-10-16 05:36 |阅读模式
本帖最后由 hbghlyj 于 2022-10-16 10:08 编辑 将1到$mn$不重复填入$m×n$矩阵, 使每行、每列都是顺序的方法数?
$m×n$和$n×m$按矩阵转置一一对应, 所以只需考虑$m≤n$的情形.
$1×n$ 有 1 种.
$2×2$ 有 2 种.
$\pmatrix{1&2\\3&4}\pmatrix{1&3\\2&4}$
$2×3$ 有 5 种.
$\pmatrix{1&2&3\\4&5&6}\pmatrix{1&2&4\\3&5&6}\pmatrix{1&2&5\\3&4&6}\pmatrix{1&3&4\\2&5&6}\pmatrix{1&3&5\\2&4&6}$
$2×4$ 有 14 种.
$\pmatrix{
1 & \square  & \square  & 7 \\
\square  & \square  & \square  & 8}$有5种
$\pmatrix{
1 & \square  & 5 & 6 \\
\square  & \square  & 7 & 8}$有2种
$\pmatrix{
1 & \square  & 4 & 6 \\
\square  & 5 & 7 & 8}$有2种
$\pmatrix{
1 & \square  & \square  & 6 \\
4 & 5 & 7 & 8}$有1种
$\pmatrix{
1 & \square  & 4 & 5 \\
\square  & 6 & 7 & 8}$有2种
$\pmatrix{
1 & \square  & \square  & 5 \\
4 & 6 & 7 & 8}$有1种
$\pmatrix{
1 & \square  & \square  & \square \\
5 & 6 & 7 & 8}$有1种
$3×3$ 有多少种?
  1. M = sort(sort(reshape(randperm(9),[3 3])),2,'ascend')
复制代码

用Matlab或Octave生成很多这样的矩阵(使用这帖的结论):
Screenshot 2022-10-15 at 23-09-58 Octave Online · Cloud IDE compatible with MATLAB.png

点评

3*3 有9!/(5*4*4*3*3*3*2*2*1)=42 种, 这是 Young diagram 的 hook length formula.  发表于 2022-11-1 13:50

3147

主题

8381

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65357
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-10-16 06:56
怀疑$2×n$方法数1,2,5,14⋯是Catalan数列

3147

主题

8381

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65357
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-11-1 16:54
hbghlyj 发表于 2022-10-15 23:56
怀疑$2×n$方法数1,2,5,14⋯是Catalan数列


哇, 还真是的.
Wikipedia
A Catalan number $C_{n}$ counts Dyck paths with $n$ steps going up (U) interspersed with $n$ steps going down (D), such that at each step there are never more preceding D's than U's. These are in bijection with the Young tableaux of shape $λ = ( n , n )$ $\lambda =(n,n)$: a Dyck path corresponds to the tableau whose first row lists the positions of the U-steps, while the second row lists the positions of the D-steps. For example, UUDDUD correspond to the tableaux with rows 125 and 346.

This shows that $C_{n}=f^{(n,n)}$, so the hook formula specializes to the well-known product formula
\[C_{n}={\frac {(2n)!}{(n+1)(n)\cdots (3)(2)(n)(n-1)\cdots (2)(1)}}={\frac {(2n)!}{(n+1)!\,n!}}={\frac {1}{n{+}1}}{\binom {2n}{n}}.\]

3147

主题

8381

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65357
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2024-10-19 21:07
Czhang271828 发表于 2022-11-1 05:50
3*3 有9!/(5*4*4*3*3*3*2*2*1)=42 种, 这是 Young diagram 的 hook length formula.

integral-domain.org/lwilliams/Applets/Math/YoungDiagrams.php

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 22:05

Powered by Discuz!

× 快速回复 返回顶部 返回列表