Square triangular number

From testwiki
Revision as of 04:05, 13 December 2024 by imported>David Eppstein (more sections)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:For

File:Square triangular number 36.svg
Square triangular number 36 depicted as a triangular number and as a square number.

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: Template:Bi

Solution as a Pell equation

Write Nk for the kth square triangular number, and write sk and tk for the sides of the corresponding square and triangle, so that

Template:Bi

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

Template:Bi

Therefore, N is triangular (n is an integer) if and only if 8N+1 is square. Consequently, a square number M2 is also triangular if and only if 8M2+1 is square, that is, there are numbers x and y such that x28y2=1. This is an instance of the Pell equation x2ny2=1 with n=8. All Pell equations have the trivial solution x=1,y=0 for any n; this is called the zeroth solution, and indexed as (x0,y0)=(1,0). If (xk,yk) denotes the kth nontrivial solution to any Pell equation for a particular n, it can be shown by the method of descent that the next solution is Template:Bi Hence there are infinitely many solutions to any Pell equation for which there is one non-trivial one, which is true whenever n is not a square. The first non-trivial solution when n=8 is easy to find: it is (3,1). A solution (xk,yk) to the Pell equation for n=8 yields a square triangular number and its square and triangular roots as follows:

Template:Bi

Hence, the first square triangular number, derived from (3,1), is 1, and the next, derived from 6(3,1)(1,0)(17,6), is 36.

The sequences Nk, sk and tk are the OEIS sequences Template:OEIS2C, Template:OEIS2C, and Template:OEIS2C respectively.

Explicit formula

In 1778 Leonhard Euler determined the explicit formula[1][2]Template:Rp

Template:Bi

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

Template:Bi

The corresponding explicit formulas for sk and tk are:[2]Template:Rp

Template:Bi

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[3]Template:Rp

Template:Bi

We have[1][2]Template:Rp

Template:Bi

Other characterizations

All square triangular numbers have the form b2c2, where bc is a convergent to the continued fraction expansion of 2, the square root of 2.[4]

A. V. Sylwester gave a short proof that there are infinitely many square triangular numbers: If the nth triangular number n(n+1)2 is square, then so is the larger 4n(n+1)th triangular number, since:

Template:Bi

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.[5]

The generating function for the square triangular numbers is:[6]

1+z(1z)(z234z+1)=1+36z+1225z2+

See also

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

Notes

Template:Reflist

Template:Classes of natural numbers