# Triangular numbers

The triangular numbers $T(n)$ are defined for $n=1,2,3,\ldots$ by the formula $$T(n)=\displaystyle\sum_{k=1}^n k.$$ They represent the number of ways to draw an equilateral triangle as in the image below.