Pascal's triangle


In mathematics, Pascal's triangle is a triangular array of the binomial coefficients. In much of the Western world, it is named after the French mathematician Blaise Pascal, although other mathematicians studied it centuries before him in India, Persia, China, Germany, and Italy.
The rows of Pascal's triangle are conventionally enumerated starting with row n = 0 at the top. The entries in each row are numbered from the left beginning with k = 0 and are usually staggered relative to the numbers in the adjacent rows. The triangle may be constructed in the following manner: In row 0, there is a unique nonzero entry 1. Each entry of each subsequent row is constructed by adding the number above and to the left with the number above and to the right, treating blank entries as 0. For example, the initial number in the first row is 1, whereas the numbers 1 and 3 in the third row are added to produce the number 4 in the fourth row.

Formula

The entry in the nth row and kth column of Pascal's triangle is denoted. For example, the unique nonzero entry in the topmost row is. With this notation, the construction of the previous paragraph may be written as follows:
for any non-negative integer n and any integer k between 0 and n, inclusive. This recurrence for the binomial coefficients is known as Pascal's rule.
Pascal's triangle has higher dimensional generalizations. The three-dimensional version is called Pascal's pyramid or Pascal's tetrahedron, while the general versions are called Pascal's simplices.

History

The pattern of numbers that forms Pascal's triangle was known well before Pascal's time. Pascal innovated many previously unattested uses of the triangle's numbers, uses he described comprehensively in the earliest known mathematical treatise to be specially devoted to the triangle, his Traité du triangle arithmétique. Centuries before, discussion of the numbers had arisen in the context of Indian studies of combinatorics and of binomial numbers and the Greeks' study of figurate numbers.
From later commentary, it appears that the binomial coefficients and the additive formula for generating them,, were known to Pingala in or before the 2nd century BC. While Pingala's work only survives in fragments, the commentator Varāhamihira, around 505, gave a clear description of the additive formula, and a more detailed explanation of the same rule was given by Halayudha, around 975. Halayudha also explained obscure references to Meru-prastaara, the Staircase of Mount Meru, giving the first surviving description of the arrangement of these numbers into a triangle. In approximately 850, the Jain mathematician Mahāvīra gave a different formula for the binomial coefficients, using multiplication, equivalent to the modern formula. In 1068, four columns of the first sixteen rows were given by the mathematician Bhattotpala, who was the first recorded mathematician to equate the additive and multiplicative formulas for these numbers.
At around the same time, the Persian mathematician Al-Karaji wrote a now lost book which contained the first description of Pascal's triangle. It was later repeated by the Persian poet-astronomer-mathematician Omar Khayyám ; thus the triangle is also referred to as the Khayyam triangle in Iran. Several theorems related to the triangle were known, including the binomial theorem. Khayyam used a method of finding nth roots based on the binomial expansion, and therefore on the binomial coefficients.
Pascal's triangle was known in China in the early 11th century through the work of the Chinese mathematician Jia Xian. In the 13th century, Yang Hui presented the triangle and hence it is still called Yang Hui's triangle in China.
In the west, the binomial coefficients were calculated by Gersonides in the early 14th century, using the multiplicative formula for them.
Petrus Apianus published the full triangle on the frontispiece of his book on business calculations in 1527. This is the first record of the triangle in Europe. Michael Stifel published a portion of the triangle in 1544, describing it as a table of figurate numbers. In Italy, Pascal's triangle is referred to as Tartaglia's triangle, named for the Italian algebraist Niccolò Fontana Tartaglia, who published six rows of the triangle in 1556.
Gerolamo Cardano, also, published the triangle as well as the additive and multiplicative rules for constructing it in 1570.
Pascal's Traité du triangle arithmétique was published in 1655. In this, Pascal collected several results then known about the triangle, and employed them to solve problems in probability theory. The triangle was later named after Pascal by Pierre Raymond de Montmort who called it "Table de M. Pascal pour les combinaisons" and Abraham de Moivre who called it "Triangulum Arithmeticum PASCALIANUM", which became the modern Western name.

Binomial expansions

Pascal's triangle determines the coefficients which arise in binomial expansions. For example, consider the expansion
The coefficients are the numbers in row two of Pascal's triangle: 1, 2, 1.
In general, when a binomial like x + y is raised to a positive integer power we have:
where the coefficients ai in this expansion are precisely the numbers on row n of Pascal's triangle. In other words,
This is the binomial theorem.
The entire right diagonal of Pascal's triangle corresponds to the coefficient of yn in these binomial expansions, while the next diagonal corresponds to the coefficient of xyn−1 and so on.
To see how the binomial theorem relates to the simple construction of Pascal's triangle, consider the problem of calculating the coefficients of the expansion of in terms of the corresponding coefficients of . Suppose then that
Now
The two summations can be reorganized as follows:
, which is what we need if we want to express a line in terms of the line above it. Recall that all the terms in a diagonal going from the upper-left to the lower-right correspond to the same power of x, and that the a-terms are the coefficients of the polynomial, and we are determining the coefficients of. Now, for any given i not 0 or, the coefficient of the xi term in the polynomial is equal to. This is indeed the simple rule for constructing Pascal's triangle row-by-row.
It is not difficult to turn this argument into a proof of the binomial theorem. Since
, the coefficients are identical in the expansion of the general case.
An interesting consequence of the binomial theorem is obtained by setting both variables x and y equal to one. In this case, we know that, and so
In other words, the sum of the entries in the nth row of Pascal's triangle is the nth power of 2. This is equivalent to the statement that the number of subsets of an n-element set is, as can be seen by observing that the number of subsets is the sum of the number of combinations of each of the possible lengths, which range from zero through to n.

Combinations

A second useful application of Pascal's triangle is in the calculation of combinations. For example, the number of combinations of n things taken k at a time can be found by the equation
But this is also the formula for a cell of Pascal's triangle. Rather than performing the calculation, one can simply look up the appropriate entry in the triangle. Provided we have the first row and the first entry in a row numbered 0, the answer will be located at entry k in row n. For example, suppose a basketball team has 10 players and wants to know how many ways there are of selecting 8. The answer is entry 8 in row 10, which is 45; that is, 10 choose 8 is 45.

Relation to binomial distribution and convolutions

When divided by 2n, the nth row of Pascal's triangle becomes the binomial distribution in the symmetric case where p = 1/2. By the central limit theorem, this distribution approaches the normal distribution as n increases. This can also be seen by applying Stirling's formula to the factorials involved in the formula for combinations.
This is related to the operation of discrete convolution in two ways. First, polynomial multiplication exactly corresponds to discrete convolution, so that repeatedly convolving the sequence with itself corresponds to taking powers of 1 + x, and hence to generating the rows of the triangle. Second, repeatedly convolving the distribution function for a random variable with itself corresponds to calculating the distribution function for a sum of n independent copies of that variable; this is exactly the situation to which the central limit theorem applies, and hence leads to the normal distribution in the limit.

Patterns and properties

Pascal's triangle has many properties and contains many patterns of numbers.

Rows

The diagonals of Pascal's triangle contain the figurate numbers of simplices:
The symmetry of the triangle implies that the nth d-dimensional number is equal to the dth n-dimensional number.
An alternative formula that does not involve recursion is as follows:
The geometric meaning of a function Pd is: Pd = 1 for all d. Construct a d-dimensional triangle by placing additional dots below an initial dot, corresponding to Pd = 1. Place these dots in a manner analogous to the placement of numbers in Pascal's triangle. To find Pd, have a total of x dots composing the target shape. Pd then equals the total number of dots in the shape. A 0-dimensional triangle is a point and a 1-dimensional triangle is simply a line, and therefore P0 = 1 and P1 = x, which is the sequence of natural numbers. The number of dots in each layer corresponds to Pd − 1.

Calculating a row or diagonal by itself

There are simple algorithms to compute all the elements in a row or diagonal without computing other elements or factorials.
To compute row with the elements,,...,, begin with. For each subsequent element, the value is determined by multiplying the previous value by a fraction with slowly changing numerator and denominator:
For example, to calculate row 5, the fractions are , , , and, and hence the elements are , , , etc.
To compute the diagonal containing the elements,,,..., we again begin with and obtain subsequent elements by multiplication by certain fractions:
For example, to calculate the diagonal beginning at, the fractions are , , ,..., and the elements are, , , etc. By symmetry, these elements are equal to,,, etc.

Overall patterns and properties



Pascal's triangle overlaid on a grid gives the number of distinct paths to each square, assuming only rightward and downward movements are considered.

Due to its simple construction by factorials, a very basic representation of Pascal's triangle in terms of the matrix exponential can be given: Pascal's triangle is the exponential of the matrix which has the sequence 1, 2, 3, 4, … on its subdiagonal and zero everywhere else.

Connections to geometry of polytopes

Pascal's triangle can be used as a lookup table for the number of elements within a polytope.

Number of elements of simplices

Let's begin by considering the 3rd line of Pascal's triangle, with values 1, 3, 3, 1. A 2-dimensional triangle has one 2-dimensional element, three 1-dimensional elements, and three 0-dimensional elements. The meaning of the final number is more difficult to explain. Continuing with our example, a tetrahedron has one 3-dimensional element, four 2-dimensional elements, six 1-dimensional elements, and four 0-dimensional elements. Adding the final 1 again, these values correspond to the 4th row of the triangle. Line 1 corresponds to a point, and Line 2 corresponds to a line segment. This pattern continues to arbitrarily high-dimensioned hyper-tetrahedrons.
To understand why this pattern exists, one must first understand that the process of building an n-simplex from an -simplex consists of simply adding a new vertex to the latter, positioned such that this new vertex lies outside of the space of the original simplex, and connecting it to all original vertices. As an example, consider the case of building a tetrahedron from a triangle, the latter of whose elements are enumerated by row 3 of Pascal's triangle: 1 face, 3 edges, and 3 vertices. To build a tetrahedron from a triangle, we position a new vertex above the plane of the triangle and connect this vertex to all three vertices of the original triangle.
The number of a given dimensional element in the tetrahedron is now the sum of two numbers: first the number of that element found in the original triangle, plus the number of new elements, each of which is built upon elements of one fewer dimension from the original triangle. Thus, in the tetrahedron, the number of cells is ; the number of faces is the number of edges is the number of new vertices is. This process of summing the number of elements of a given dimension to those of one fewer dimension to arrive at the number of the former found in the next higher simplex is equivalent to the process of summing two adjacent numbers in a row of Pascal's triangle to yield the number below. Thus, the meaning of the final number in a row of Pascal's triangle becomes understood as representing the new vertex that is to be added to the simplex represented by that row to yield the next higher simplex represented by the next row. This new vertex is joined to every element in the original simplex to yield a new element of one higher dimension in the new simplex, and this is the origin of the pattern found to be identical to that seen in Pascal's triangle. The "extra" 1 in a row can be thought of as the -1 simplex, the unique center of the simplex, which ever gives rise to a new vertex and a new dimension, yielding a new simplex with a new center.

Number of elements of hypercubes

A similar pattern is observed relating to squares, as opposed to triangles. To find the pattern, one must construct an analog to Pascal's triangle, whose entries are the coefficients of, instead of. There are a couple ways to do this. The simpler is to begin with Row 0 = 1 and Row 1 = 1, 2. Proceed to construct the analog triangles according to the following rule:
That is, choose a pair of numbers according to the rules of Pascal's triangle, but double the one on the left before adding. This results in:
The other way of manufacturing this triangle is to start with Pascal's triangle and multiply each entry by 2k, where k is the position in the row of the given number. For example, the 2nd value in row 4 of Pascal's triangle is 6. To get the value that resides in the corresponding position in the analog triangle, multiply 6 by. Now that the analog triangle has been constructed, the number of elements of any dimension that compose an arbitrarily dimensioned cube can be read from the table in a way analogous to Pascal's triangle. For example, the number of 2-dimensional elements in a 2-dimensional cube is one, the number of 1-dimensional elements is 4, and the number of 0-dimensional elements is 4. This matches the 2nd row of the table. A cube has 1 cube, 6 faces, 12 edges, and 8 vertices, which corresponds to the next line of the analog triangle. This pattern continues indefinitely.
To understand why this pattern exists, first recognize that the construction of an n-cube from an -cube is done by simply duplicating the original figure and displacing it some distance orthogonal to the space of the original figure, then connecting each vertex of the new figure to its corresponding vertex of the original. This initial duplication process is the reason why, to enumerate the dimensional elements of an n-cube, one must double the first of a pair of numbers in a row of this analog of Pascal's triangle before summing to yield the number below. The initial doubling thus yields the number of "original" elements to be found in the next higher n-cube and, as before, new elements are built upon those of one fewer dimension. Again, the last number of a row represents the number of new vertices to be added to generate the next higher n-cube.
In this triangle, the sum of the elements of row m is equal to 3m. Again, to use the elements of row 4 as an example:, which is equal to.

Counting vertices in a cube by distance

Each row of Pascal's triangle gives the number of vertices at each distance from a fixed vertex in an n-dimensional cube. For example, in three dimensions, the third row corresponds to the usual three-dimensional cube: fixing a vertex V, there is one vertex at distance 0 from V, three vertices at distance 1, three vertices at distance and one vertex at distance . The second row corresponds to a square, while larger-numbered rows correspond to hypercubes in each dimension.

Fourier transform of sin(''x'')''n''+1/''x''

As stated previously, the coefficients of n are the nth row of the triangle. Now the coefficients of n are the same, except that the sign alternates from +1 to −1 and back again. After suitable normalization, the same pattern of numbers occurs in the Fourier transform of sinn+1/x. More precisely: if n is even, take the real part of the transform, and if n is odd, take the imaginary part. Then the result is a step function, whose values are given by the nth row of the triangle with alternating signs. For example, the values of the step function that results from:
compose the 4th row of the triangle, with alternating signs. This is a generalization of the following basic result :
is the boxcar function. The corresponding row of the triangle is row 0, which consists of just the number 1.
If n is congruent to 2 or to 3 mod 4, then the signs start with −1. In fact, the sequence of the first terms corresponds to the powers of i, which cycle around the intersection of the axes with the unit circle in the complex plane:

Elementary cellular automaton

The pattern produced by an elementary cellular automaton using rule 60 is exactly Pascal's triangle of binomial coefficients reduced modulo 2. Rule 102 also produces this pattern when trailing zeros are omitted. Rule 90 produces the same pattern but with an empty cell separating each entry in the rows.

Extensions

Pascal's triangle can be extended to negative row numbers.
First write the triangle in the following form:
012345...
0100000...
1110000...
2121000...
3133100...
4146410...

Next, extend the column of 1s upwards:
012345...
−41...
−31...
−21...
−11...
0100000...
1110000...
2121000...
3133100...
4146410...

Now the rule:
can be rearranged to:
which allows calculation of the other entries for negative rows:
012345...
−41−410−2035−56...
−31−36−1015−21...
−21−23−45−6...
−11−11−11−1...
0100000...
1110000...
2121000...
3133100...
4146410...

This extension preserves the property that the values in the mth column viewed as a function of n are fit by an order m polynomial, namely
This extension also preserves the property that the values in the nth row correspond to the coefficients of n:
For example:
When viewed as a series, the rows of negative n diverge. However, they are still Abel summable, which summation gives the standard values of 2n.
Another option for extending Pascal's triangle to negative rows comes from extending the other line of 1s:
−4−3−2−1012345...
−41000000000...
−3100000000...
−210000000...
−11000000...
00000100000...
10000110000...
20000121000...
30000133100...
40000146410...

Applying the same rule as before leads to
−4−3−2−1012345...
−41000000000...
−3−3100000000...
−23−210000000...
−1−11−11000000..
00000100000...
10000110000...
20000121000...
30000133100...
40000146410...

This extension also has the properties that just as
we have
Also, just as summing along the lower-left to upper-right diagonals of the Pascal matrix yields the Fibonacci numbers, this second type of extension still sums to the Fibonacci numbers for negative index.
Either of these extensions can be reached if we define
and take certain limits of the gamma function,.