# Triangular Numbers which are also Square

## Theorem

Let $A_n$ be the $n$th non-negative integer whose square is also a triangular number.

Then:

$A_n = \begin{cases} 0 & : n = 0 \\ 1 & : n = 1 \\ 6 A_{n - 1} - A_{n - 2} & : n > 1 \end{cases}$

### Sequence of Square Triangles

The sequence of triangular numbers which are also square begins:

$1, 36, 1225, 41 \, 616, 1 \, 413 \, 721, \ldots$

Their indices are:

$1, 8, 49, 288, 1681, 9800, \ldots$

Their roots are:

$1, 6, 35, 204, 1189, \ldots$