Named after the French mathematician, Blaise Pascal, the Pascal’s Triangle is a triangular structure of numbers. The triangle is constructed using a simple additive principle, explained in the following figure.
Each entry, except the boundary of ones, is formed by adding the above adjacent elements. Even though the formation of Pascal’s triangle is simple, it holds a huge number of mathematical properties and applications.
Let us go through some mind-blowing properties of Pascal’s Triangle.
Any high-school student with mathematical background must have gone through the course of Permutations and Combinations. The combinations section refers to the number of ways we can choose certain objects from a group of objects.
Using the row and the column number, each value can be replaced as follows:
This property further extends to the binomial expansions, where each binomial coefficient represents the value of the Pascal’s Triangle.
A very unique property of Pascal’s triangle is – “At any point along the diagonal, the sum of values starting from the border, equals to the value in the next row, in the opposite direction of the diagonal.”
It is quite clear from the figure that, the separate sums form individual hockey sticks.
#c++ #cplusplus #programming-c