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

26 lines
1.3 KiB
Markdown

---
title: Pascals Triangle
---
## Pascals Triangle
Pascals Triangle is a neverending numerical triangle in which the top two outside edges are made of *1*s 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](https://github.com/TheRealSpartacus/sources/blob/master/Pascals/Pascal%20Fig.%201.PNG "Fig. 1")
**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.
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
#### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article -->
On binomial expansions:
<a href="http://www.youtube.com/watch?feature=player_embedded&v=v9Evg2tBdRk
" target="_blank"><img src="http://img.youtube.com/vi/v9Evg2tBdRk/0.jpg"
alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>
On patterns in Pascals triangle:
https://www.mathsisfun.com/pascals-triangle.html