13

Let $t(n)$ denote the n$^{th}$ triangular number.

Let $T(n)$ denote the sum of the first $n$ triangular numbers.

Is there a formula for $T(n)$?

Bill Dubuque
  • 272,048
abc...
  • 4,904

5 Answers5

20

Formula for T(n): $$T(n)=\frac{n(n+1)(n+2)}{6}$$ Proof: we can prove it in an inductive way.

Base case:$$T(1)=\frac{1*2*3}{6}=1$$ Let n=k. We have $T(n+1)=T(n)+t(n+1).$

Therefore $$T(k+1)=T(k)+t(k+1)=\frac{k(k+1)(k+2)}{6}+\frac{(k+1)(k+2)}{2}=\frac{k(k+1)(k+2)+3(k+1)(k+2)}{6}=\frac{(k+1)(k+2)(k+3)}{6}$$

Q.E.D

abc...
  • 4,904
  • 3
    Be happy +1..... – Vidyanshu Mishra Sep 19 '17 at 09:51
  • Strictly speaking, this proof isn't valid because it uses the formula it's trying to prove to establish the base case. Better to simply compute the "sum" of the first triangular number explicitly. – David Z Sep 19 '17 at 15:22
  • @DavidZ: I take your point, but I read that line as stating that $T(1)$ (ie the first triangular number) is equal to ${1\cdot 2 \cdot 3}\over 6$ (ie formula we're trying to prove) - so no assumption is necessarily being made. – psmears Sep 19 '17 at 16:43
  • @psmears Oh, OK, I see what you mean. Well, in that case I would scale back my criticism to merely say that it's not explained well. – David Z Sep 19 '17 at 16:47
8

$nth$ triangular number is the sum of $n$ consecutive natural numbers from starting which is simply $n(n+1)/2$. You want sum of first $n$ triangular numbers. Just take the sum $\Sigma_{i=1}^n \frac{i(i+1)}{2}$.

8

$$\begin{align} t(r)&=\binom {r+1}2&&=\frac {r(r+1)}2\\ T(n)&=\sum_{r=1}^n t(r)\\ &=\sum_{r=1}^n \binom {r+1}2\\ &=\binom {n+2}3&&=\frac {n(n+1)(n+2)}6\end{align}$$

7

Since the $k$-th triangular number is $T(k)=\frac{k(k+1)}{2}$, so your sum is $$ \sum_{k=1}^n\frac{k(k+1)}{2}=\frac{1}{2}\biggl( \sum_{k=1}^n k^2+\sum_{k=1}^n k\biggr) $$ The second summation is $T(n)$, the first summation is $$ \frac{1}{3}n\left(n+\frac{1}{2}\right)(n+1) $$ (a nice way to memorize it), you find it in several places (the book “Concrete Mathematics” by Graham, Knuth and Patashnik features several derivations of the formula).

egreg
  • 238,574
5

$$\sum_{k=1}^n\frac{k(k+1)}{2}=\frac{1}{2}\left(\frac{n(n+1)(2n+1)}{6}+\frac{n(n+1)}{2}\right)=$$ $$=\frac{n(n+1)}{12}\cdot(2n+1+3)=\frac{n(n+1)(n+2)}{6}.$$

I used that $\frac{n(n+1)}{2}$ is the $n$-th triangle number.