This question already has an answer here:
There is a pattern following, and trying to find the algebraic expression
Each layer (from the top).
So the first layer has 1, second has 4, third has 9, and the fourth has 16.
That's how the sequence is increasing.
What I'm looking for is,
When the second layer is added with the first layer,
Third layer is added with the second and first,
Fourth is added with third,second and first.
So something like this.
I am trying to find the algebraic expression for this pattern.