The completed, and expanded, chart is below.
In filling out the chart you might have noticed that it would be useful to
know how many balls are in each layer of the pyramid.
Of course, the number of the balls in the pyramid is the sum
of the number of balls in each layer.
But, the number of balls in layer N is
the number of balls in a triangle with a base of N balls.
Say that you know that there are
Pyramid(N-1) balls in the first
N-1 layers (counting from the top of the pyramid).
Then the following scheme looks tempting:
Pyramid(N) = Pyramid(N-1) + Triangle(N)