freeCodeCamp/guide/english/mathematics/pascals-triangle/index.md

1.3 KiB

title
Pascals Triangle

Pascals Triangle

Pascals Triangle is a neverending numerical triangle in which the top two outside edges are made of 1s and all the inner numbers are created by adding the two numbers that occur to the top left and top right together. Here is an example of a 4 row Pascals Triangle:

alt text

Note: When counting rows, you skip the first one

Pascals triangle has two main uses, one is for binomial expansions, while the other is finding patterns within pascals triangle. Such patterns are triangular numbers, the fibonacci sequence, powers of 2, exponents of 11 and so on.

More Information:

On binomial expansions:

IMAGE ALT TEXT HERE

On patterns in Pascals triangle: https://www.mathsisfun.com/pascals-triangle.html