Square triangular number
Integer that is both a perfect square and a triangular number

In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a square number, in other words, the sum of all integers from to
has a square root that is an integer. There are infinitely many square triangular numbers; the first few are:
| N A001110 | s2 = N A001109 | t(t+1)/2 = N A001108 |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 36 | 6 | 8 |
| 1225 | 35 | 49 |
| 41616 | 204 | 288 |
| 1413721 | 1189 | 1681 |
| 48024900 | 6930 | 9800 |
01Solution as a Pell equation
Write for the
th square triangular number, and write
and
for the sides of the corresponding square and triangle, so that
Define the triangular root of a triangular number to be
. In the form of the quadratic equation,
. From the quadratic formula,
Therefore, is triangular (
is an integer) if and only if
is square. Consequently, a square number
is also triangular if and only if
is square, that is, there are numbers
and
such that
. This is an instance of the Pell equation
with
. All Pell equations have the trivial solution
for any
; this is called the zeroth solution, and indexed as
. If
denotes the
th nontrivial solution to any Pell equation for a particular
, it can be shown by the method of descent that the next solution is
Hence there are infinitely many solutions to any Pell equation for which there is one non-trivial one, which is true whenever is not a square. The first non-trivial solution when
is easy to find: it is
. A solution
to the Pell equation for
yields a square triangular number and its square and triangular roots as follows:
Hence, the first square triangular number, derived from , is
, and the next, derived from
, is
.
The sequences ,
and
are the OEIS sequences OEIS: A001110, OEIS: A001109, and OEIS: A001108 respectively.
02Explicit formula
In 1778 Leonhard Euler determined the explicit formula
Other equivalent formulas (obtained by expanding this formula) that may be convenient include
The corresponding explicit formulas for and
are:
03Recurrence relations
The solution to the Pell equation can be expressed as a recurrence relation for the equation's solutions. This can be translated into recurrence equations that directly express the square triangular numbers, as well as the sides of the square and triangle involved. We have
We have
04Other characterizations
All square triangular numbers have the form , where
is a convergent to the continued fraction expansion of
, the square root of 2.
A. V. Sylwester gave a short proof that there are infinitely many square triangular numbers: If the th triangular number
is square, then so is the larger
th triangular number, since:
The left hand side of this equation is in the form of a triangular number, and as the product of three squares, the right hand side is square.
The generating function for the square triangular numbers is:
Sources and credits
This article is adapted from the Wikipedia article “Square triangular number”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Square triangular number 36.svg by Cmglee, CC BY-SA 4.0
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.