# N^2=T(n)+T(n-1)

The following formula holds for $n=1,2,3,\ldots$: $$n^2=T(n)+T(n-1),$$ where $T(n)$ denotes the $n$th triangular number.