Pascal's Triangle Yang Hui's Triangle Calculator
Pascal's triangle is a triangular matrix with 1 at the top, which is considered (row0). The first column (row1) (1&1) has two 1s, which are the sum of the two numbers above and below them (numbers not in the triangle are considered 0). Similarly, the second column (row2) is generated: 0+1=1; 1+1=2; 1+0=1. The third column (row3): 0+1=1; 1+2=3; 2+1=3; 1+0=1. The following columns can be generated in this way.