Number of Catalan

Source: Internet
Author: User

We know that any positive n-side shape can be divided into (n-2) triangles with (n-3) diagonal lines, so how many options are there? (Don't say I'm bored)
In fact, it's simple:
We use HN to represent the number of partition schemes of n-side shape, and define h2=1,h3=1;
Then for an n-side shape (at least one diagonal line at any point of it), we can use a diagonal line of a point to divide it into a
(i) A side shape and a (n-i+2) edge (2<i<n), then the number of schemes at this point (that is, the diagonal) is (Hi) * (hn-i+2);
Plus h2=1, that is, the total scheme number is hn=h2*hn-1+h3*hn-2+ +HN-1*H2;
We write it in the form of hn+1: hn+1=h2*hn+h3*hn-1+ +hn*h3;
Redefine cn=hn+1 (c1=1,c2=1), you can get: cn=c1*cn-1+c2*cn-2+ +CN-1*C1;
This is the famous Catalan number, which is named by Belgian mathematician Catalan (Eugen Charlie Cartland, 1814-1894), and it is widely used in combinatorial mathematics for various counting problems.
Finish......
Short, but can be rotated ...

Number of Catalan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.