Forgot password?
 Register account
View 166|Reply 0

[组合] n个整数 划分为3个集合 使其中一个集合中没有2个连续的数

[Copy link]

3157

Threads

7925

Posts

610K

Credits

Credits
64218
QQ

Show all posts

hbghlyj Posted 2022-12-1 03:33 |Read mode
有多少种方法可以将 $\{1,2,\ldots,n\}$ 分成三个不交的集合 $A$、$B$ 和 $C$,使得集合 $A$ 中没有两个连续的数
combinatorics - partitions of sets
从 $1,2,\dots,n$ 中选择 $k$ 个数使得没有两个数连续的方法数是$\dbinom{n-k+1}{k}$见此处
之后,我们将剩余的数划分为 $B$ 和 $C$。划分的方式数是$2S(n-k,2) + 2$。其中 $S(a,b)$ 是第二类Stirling数(有关解释请参见上面链接的答案)。因此答案是
$$\sum_{k=0}^{n} \binom{n-k+1}{k} (2S(n-k,2) + 2)$$

Mobile version|Discuz Math Forum

2025-6-6 14:41 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit