Oct 26

Fruit PyramidI was walking through main suite of the mathematics offices and glanced over at the board where some students, who I believe are in a mathematics education course, were working on calculating the sum of the first few triangular numbers.

For those of you that don’t know, triangular numbers are the numbers that represent the sum of the first n positive integers

1 = 1
1+2 = 3
1+2+3 = 6
1+2+3+4=10
1+2+3+4+5=15
1+2+3+4+5+6=21
\cdots

It might be easier to see why they are referred to as triangular if you look at the table below:

1     O
3 O  O
6 O  O  O
10 O  O  O  O
15 O  O  O  O  O
21 O  O  O  O  O  O

The number in each row represents the number of “balls” on the row and all previous rows. Note that if you want the nth triangular number, you can see that

T_n = \displaystyle \frac{n(n+1)}{2}

(You can prove this by a standard mathematical induction argument)

So the question was, “What is the sum of the first n triangular numbers?”

T_1 + T_2 + T_3 + \cdots + T_n

Another way of looking at this question is to see it as the number of balls in a triangular pyramid. They are called either tetrahedral numbers or pyramidal numbers.

1 = 1
1+3 = 4
1+3+6 = 10
1+3+6+10=20
1+3+6+10+15=35
1+3+6+10+15+21=56
\cdots

It can be shown that \displaystyle P_n = \frac{n(n+1)(n+2)}{6}, where P_n denotes the n-th pyramidal number. Again, this is a straight-forward exercise to prove this by mathematical induction.

This inspired me to double check that adding the first n pyramidal numbers would follow this pattern. I’ll spare you the my lengthy version of this mathematical induction proof (that is, unless you ask).

\displaystyle P_1 + P_2 + P_3 + \cdots + P_n = \frac{n(n+1)(n+2)(n+3)}{4!}

Now, I’ve not really seen this in any of my reading or course work. Someone reading this might know if such numbers have a name but for lack of a better one, I’ll call them “hyper-pyramidal numbers” which basically represent the number of balls it would take to form a 4-dimensional triangular pyramid. We can then extend this generalization to any dimension. You’ve seen the 3-D pyramid in the image above. Now imagine extending a triangular pyramid in some new dimension. That is, we really have a sequence of 3-D pyramids of shrinking size. Just like the 3-D pyramid is a sequence of triangles of shrinking size. If we are dealing with a 4 dimensional hyper-pyramid, then the first 3-D pyramid would be n rows high. This would have T_n balls. Then the next would be T_{n-1} balls and so one down to a single ball. Then the total number would be

\displaystyle P_1 + P_2 + P_3 + \cdots + P_n = \frac{n(n+1)(n+2)(n+3)}{4!}

For simplicity let me modify my notation so that P_n^{(k)} represents the n-th k-D hyper pyramidal number. Thus my notation would say,

P_n^{(1)} = n
\displaystyle P_n^{(2)} = T_n = \frac{n(n+1)}{2}
\displaystyle P_n^{(3)} = P_n = \frac{n(n+1)(n+2)}{3!}
\displaystyle P_n^{(4)} = P_1 + P_2 + \cdots + P_n\frac{n(n+1)(n+2)(n+3)}{4!}
\displaystyle \vdots
\displaystyle \begin{array}{rl}P_n^{(k)} &= P_1^{(k-1)} + P_2^{(k-1)} + \cdots + P_n^{(k-1)}\\[2ex] &= \displaystyle \frac{n(n+1)(n+2)\cdots(n+k-1)}{k!}\end{array}

Unfortunately, I did not take the time to verify the general formula for P_n^{(k)} by induction on k \in \mathbb{Z}^{+}. I do have other things to do you know. Give it a shot if you’re ever bored.

written by SplineGuy