If one side of the bottom layer of a triangular pyramid of bowling balls has 12 balls, how many are there in the whole pyramid?

************

***********
**********
*********
********
*******
******
*****
****
***
**
*
The above figure shows the bottom layer of the pyramid, which has
1+2+3+4+5+6+7+8+9+10+11+12=78 balls
The next layer will have one row less, namely
1+2+3...11=66
and so on until the first layer has only one ball.
In fact, the layer with n balls on the side has n(n+1)/2 balls in the layer.

Add up all the sums to get 364 balls in all.

Again, for a pyramid of n layers (where the bottom layers has n balls on each side) the total number of balls is given by n(n+1)(n+2)/6.

To find the total number of balls in the whole pyramid, we need to know how many layers it has. Since we don't have that information, let's assume that the pyramid has a total of "n" layers.

We can calculate the total number of balls in a triangular pyramid by summing up the number of balls in each layer.

The first layer (bottom layer) has 12 balls.

For the second layer, we need to consider that a triangular pyramid has one less row than the bottom layer, so the second layer will have 12 - 1 = 11 balls.

Similarly, for the third layer, there will be 11 - 1 = 10 balls.

This pattern continues until we reach the top of the pyramid, where there will be only one ball.

To find the total number of balls, we need to add up the number of balls in each layer.

The sum of the number of balls in the layers can be calculated using a formula for the sum of an arithmetic series:

Sum = (n / 2) * (first term + last term)

In our case, the first term is 12 and the last term is 1.

So, the sum of the number of balls in each layer can be calculated as:

Sum = (n / 2) * (12 + 1)

Now, we need to determine the value of "n" to find the total number of balls in the pyramid. Unfortunately, without knowing the number of layers or having any additional information, it is not possible to determine the exact number of balls in the whole pyramid.