10-Counting

这篇 note 主要讲关于排列组合的一些内容,我们在高中已经学习过不少,所以讲的比较简洁,同样是罗列一些知识点


I 一些组合数公式

unnamed formula

(只是我不想去查这是什么公式罢了)

(r+1n+1)=(rn)+(r+1n)

不难理解,就是就 某一项被选上与否 分了两种情况。

Hockey-stick identity

(r+1n+1)=(rn)+(rn1)++(rr+1)+(rr)

之所以叫这个名字是因为其在杨辉三角(外国一般称为 Pascal's triangle )中的形状十分像一个曲棍球棒

不难理解,上面的公式可以理解为:

从 n -1 个中选择 r+1 个等同于

将上面所有加起来便得证

Derangement

Definition

In combinatorial mathematics, a derangement(紊乱) is a permutation of the elements of a set in which no element appears in its original position . In other words, a derangement is a permutation that has no fixed points.

回忆一下,高中或许见过这样的题目:n 个人互相送礼物,每人送一份且得一份,不得拿自己的礼物,问有多少种送的方法?(记作 D(n) )就是这个了,我个人愿意把这个称为错位排序,简称错排。

不加证明地,我们给出:

Dn={0n=11n=2(n1)(Dn1+Dn2)n3=n!k=0n(1)kk!