N^2=T(n)+T(n-1)
From specialfunctionswiki
Theorem
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.
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.