In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a square number. There are infinitely many square triangular numbers; the first few are:

Solution as a Pell equation

Write N k {\displaystyle N_{k}} for the k {\displaystyle k} th square triangular number, and write s k {\displaystyle s_{k}} and t k {\displaystyle t_{k}} for the sides of the corresponding square and triangle, so that

Define the triangular root of a triangular number N = n ( n 1 ) 2 {\displaystyle N={\tfrac {n(n 1)}{2}}} to be n {\displaystyle n} . From this definition and the quadratic formula,

Therefore, N {\displaystyle N} is triangular ( n {\displaystyle n} is an integer) if and only if 8 N 1 {\displaystyle 8N 1} is square. Consequently, a square number M 2 {\displaystyle M^{2}} is also triangular if and only if 8 M 2 1 {\displaystyle 8M^{2} 1} is square, that is, there are numbers x {\displaystyle x} and y {\displaystyle y} such that x 2 8 y 2 = 1 {\displaystyle x^{2}-8y^{2}=1} . This is an instance of the Pell equation x 2 n y 2 = 1 {\displaystyle x^{2}-ny^{2}=1} with n = 8 {\displaystyle n=8} . All Pell equations have the trivial solution x = 1 , y = 0 {\displaystyle x=1,y=0} for any n {\displaystyle n} ; this is called the zeroth solution, and indexed as ( x 0 , y 0 ) = ( 1 , 0 ) {\displaystyle (x_{0},y_{0})=(1,0)} . If ( x k , y k ) {\displaystyle (x_{k},y_{k})} denotes the k {\displaystyle k} th nontrivial solution to any Pell equation for a particular n {\displaystyle n} , 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 n {\displaystyle n} is not a square. The first non-trivial solution when n = 8 {\displaystyle n=8} is easy to find: it is ( 3 , 1 ) {\displaystyle (3,1)} . A solution ( x k , y k ) {\displaystyle (x_{k},y_{k})} to the Pell equation for n = 8 {\displaystyle n=8} yields a square triangular number and its square and triangular roots as follows:

Hence, the first square triangular number, derived from ( 3 , 1 ) {\displaystyle (3,1)} , is 1 {\displaystyle 1} , and the next, derived from 6 ( 3 , 1 ) ( 1 , 0 ) ( 17 , 6 ) {\displaystyle 6\cdot (3,1)-(1,0)-(17,6)} , is 36 {\displaystyle 36} .

The sequences N k {\displaystyle N_{k}} , s k {\displaystyle s_{k}} and t k {\displaystyle t_{k}} are the OEIS sequences OEIS: A001110, OEIS: A001109, and OEIS: A001108 respectively.

Explicit formula

In 1778 Leonhard Euler determined the explicit formula: 12–13 

Other equivalent formulas (obtained by expanding this formula) that may be convenient include

The corresponding explicit formulas for s k {\displaystyle s_{k}} and t k {\displaystyle t_{k}} are:: 13 

Recurrence 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: (12) 

We have: 13 

Other characterizations

All square triangular numbers have the form b 2 c 2 {\displaystyle b^{2}c^{2}} , where b c {\displaystyle {\tfrac {b}{c}}} is a convergent to the continued fraction expansion of 2 {\displaystyle {\sqrt {2}}} , the square root of 2.

A. V. Sylwester gave a short proof that there are infinitely many square triangular numbers: If the n {\displaystyle n} th triangular number n ( n 1 ) 2 {\displaystyle {\tfrac {n(n 1)}{2}}} is square, then so is the larger 4 n ( n 1 ) {\displaystyle 4n(n 1)} 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:

1 z ( 1 z ) ( z 2 34 z 1 ) = 1 36 z 1225 z 2 {\displaystyle {\frac {1 z}{(1-z)\left(z^{2}-34z 1\right)}}=1 36z 1225z^{2} \cdots }

See also

  • Cannonball problem, on numbers that are simultaneously square and square pyramidal
  • Sixth power, numbers that are simultaneously square and cubical

Notes

External links

  • Triangular numbers that are also square at cut-the-knot
  • Weisstein, Eric W. "Square Triangular Number". MathWorld.
  • Michael Dummett's solution

Square triangular number Alchetron, the free social encyclopedia

Merchandise Numberblocks Wiki Fandom Triangular Numbe vrogue.co

Square & Triangular Numbers (BUNDLE PACK) by Hannah Murphy TPT

Square and Triangular Number Making Mathematics Learning Fun

1225 is a Triangular Number, a Perfect Square, and . . . Find the Factors