First, the definition:
Cattleya number is set to meet a number of columns recurrence relation of the following:
Second, the deformation:
First, let h (n) is n + 1, the number of items of Catalan, so that h (0) = 1, h (1) = 1, Catalan a number satisfying the recurrence formula:
h(n)= h(0)*h(n-1)+h(1)*h(n-2) + ... + h(n-1)*h(0) (n>=2)
1 may be simplified as order recursive relationship: h (n) = (4n-2) / (n + 1) * h (n-1) (n> = 2)
Want to prove a point here: https://blog.csdn.net/guoyangfan_/article/details/82888872
Term formula: 1, h (n) = C (2n, n) / (n + 1)
2, h (n) = C (2n, n) -C (2n, n-1)
Third, the application model:
1, the definition of type:
N number of projections seeking triangular polygon division scheme:
N nodes seeking the number of binary tree form:
Provided f (n) represents the form of binary tree has n number of nodes, f (N) is the answer.
First, there must be a root node. There are provided left of the root node k, the right has node Nk-1, then f (N) = f (k) * f (Nk-1). Since k can take the 0 ~ N-1,
To give f (N) = f (0 ) * f (N-1) + f (1) * f (N-2) + ... + f (N-1) * f (0) by the addition principle, in line with Cattleya defined form number, so that F (N) is the number Cattleya h N items.
2, Term Formula type:
Various modification problems of:
Looking for change (find half): 2n individuals have lined up to enter the theater. Admission $ 5. Of which only n individuals have a five dollar bill, while only 10 people n dollar bills, no other theater bills, asked how many methods so that as long as people buy tickets 10 yuan, ticket office there is a $ 5 bill change?
Ball cartridge problem: min balls of two colors, black and white only n respectively have the same number of boxes and the number of balls, each of which can release a ball box, and must satisfy the constraint that each have a white ball and a black ball pairing, how many kinds of situations?
同列事件可视为等价,且在题目要求中事件1的次数/大小需要始终大于事件2。像这样的题都可以用卡特兰数的通项公式解。