卡特兰数相关
这一块一直学的不太好,基本停留在看到题可以看出来是个卡特兰数,但进一步的思考和推导,对我来说就变得困难起来,所以今天趁有时间,复习一下 前言 卡特兰数多用在组合数学的计数问题中,多是那种有两种选择,也就是求有限制的方案数 公式 $h(n)=h(0){\times}h(n-1)+h(1){\times}h(n-2)+{\cdots}+h(n-1){\times}h(0)$ $h(n)=\frac{h(n-1){\times}(4{\times}n-2)}{n+1}$ $h(n)=C_{2{\times}n}^{n}-C_{2{\times}n}^{n-1}$ $h(n)=\frac{C_{2{\times}n}^{n}}{n+1}$ 最后两个通项公式在组合数学中较为常用,关于最后两个通项公式的推倒,我简单推一下,其实就是对组合数公式的应用 $h(n)=C_{2{\times}n}^{n}-C_{2{\times}n}^{n-1}$ $=C_{2{\times}n}^{n}-\frac{(2{\times}n)!{\times}n}{n!{\times}n!{\times}(n+1)}$ $=C_{2{\times}n}^{n}-C_{2{\times}n}^{n}{\times}\frac{n}{n+1}$ $=\frac{1}{n+1}{\times}C_{2{