Pascal's Triangle

From TCS Wiki
Jump to navigation Jump to search
1
1   1
1   2   1
1   3   3   1
1   4   6   4   1
1   5  10  10   5   1
The first six rows of Pascal's triangle

Pascal's Triangle is a mathematical triangular array. It is named after French mathematician Blaise Pascal, but it was used in China 3 centuries before his time.

Pascal's triangle can be made as follows. On the first row, write only the number 1. Then, to get the numbers of following rows, add the number that can be seen above and to the left (if any) and the number above and to the right (if any) to find the new value. For example, the numbers 1 and 3 in the fourth row are added to make 4 in the fifth row.

File:PascalTriangleAnimated2.gif
Each number in the triangle is the sum of the two directly above it.
File:Yanghui triangle.gif
Yang Hui (Pascal's) triangle, as depicted by the Chinese using rod numerals.
        [math]\displaystyle{ \begin{pmatrix} 0 \\ 0 \end{pmatrix} }[/math]        
      [math]\displaystyle{ \begin{pmatrix} 1 \\ 0 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 1 \\ 1 \end{pmatrix} }[/math]      
    [math]\displaystyle{ \begin{pmatrix} 2 \\ 0 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 2 \\ 1 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 2 \\ 2 \end{pmatrix} }[/math]    
  [math]\displaystyle{ \begin{pmatrix} 3 \\ 0 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 3 \\ 1 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 3 \\ 2 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 3 \\ 3 \end{pmatrix} }[/math]  
[math]\displaystyle{ \begin{pmatrix} 4 \\ 0 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 4 \\ 1 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 4 \\ 2 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 4 \\ 3 \end{pmatrix} }[/math]   [math]\displaystyle{ \begin{pmatrix} 4 \\ 4 \end{pmatrix} }[/math]

Uses of Pascal triangle

The triangle has many uses in probability. It can also be used in binomial expansions. For example

(x + 1)2 = 1x2 + 2x + 12.

Notice the coefficients are the third row of Pascal's triangle: 1, 2, 1. In general, when a binomial is raised to a positive integer power we have:

(x + y)n = a0xn + a1xn−1y + a2xn−2y2 + … + an−1xyn−1 + anyn,

where the coefficients ai in this expansion are precisely the numbers on row n + 1 of Pascal's triangle; in other words,

[math]\displaystyle{ a_i = {n \choose i}. }[/math]

Pascal's rule

Formally speaking, the way of making the Pascal's Triangle uses Pascal's rule, which states that

[math]\displaystyle{ {n \choose k} = {n-1 \choose k-1} + {n-1 \choose k} }[/math]

for non-negative integers n and k where nk and with the initial condition

[math]\displaystyle{ {n \choose 0} = {n \choose n} = 1. }[/math]

Complicated structures based on Pascal's triangle

Pascal's triangle generalizes readily into higher dimensions. The three-dimensional version is called Pascal's pyramid or Pascal's tetrahedron. A higher-dimensional analogue is generically called a "Pascal's simplex"*. See also pyramid, tetrahedron, and simplex.

Properties of Pascal's Triangle

The first and last number in each row is always 1.

[math]\displaystyle{ {n \choose 0} = {n \choose n}=1 }[/math]

The second number in each row is the row number. In a binomial expansion, this second number is equal to the power. (This makes the 'first' row, 1, actually the zero row).

[math]\displaystyle{ {n \choose 1} = n }[/math]

The rows always read the same forward and backward.

[math]\displaystyle{ {n \choose k} = {n \choose n-k} }[/math]

The sum of the numbers in each row is double the sum of the numbers in the row before. The sum of each row is 2n.

The zero row, 1, has a sum of 1.
[math]\displaystyle{ 1=2^0=1 }[/math]
The first row, 1,1 has a sum of 2.
[math]\displaystyle{ 1+1=2^1=2 }[/math]
The second row, 1,2,1 has a sum of 4.
[math]\displaystyle{ 1+2+1=2^2=4 }[/math]
The third row, (1,3,3,1) has a sum of 8.
[math]\displaystyle{ 1+3+3+1=2^3=8 }[/math]
The sum of the nth row is [math]\displaystyle{ 2^n }[/math]
[math]\displaystyle{ \sum_{i=0}^n {n \choose i} = 2^n }[/math]

Other websites

Template:Commonscat


Template:Math-stub