Forgot password?
 Create new account
View 141|Reply 0

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

[Copy link]

3147

Threads

8496

Posts

610K

Credits

Credits
66178
QQ

Show all posts

hbghlyj Posted at 2022-12-1 03:33:29 |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|Leisure Math Forum

2025-4-21 01:18 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list