Pascals triangle

Pascal's triangle is a geometric arrangement of numbers in the shape of a triangle. It is named after the French mathematician Blaise Pascal who introduced it in the 17th century.

Each number in the triangle is the sum of the two numbers directly above it. The triangle begins with the number 1 at the top, and each row starts and ends with the number 1. Below is an example of Pascal's triangle for the first 5 rows:

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

Pascal's triangle has many interesting properties and applications in mathematics. For example, the numbers in the triangle can represent the coefficients of the binomial expansion of a binomial raised to a power. The triangle also exhibits various number patterns and relationships, such as an arithmetic sequence in each row and the presence of triangular numbers. It is often used in combinatorics and probability theory.