Square 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 1 to n has a square root that is an integer.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 6 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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 1 to n has a square root that is an integer. There are infinitely many square triangular numbers; the first few are:

0, 1, 36, 1225, 41616, 1413721, 48024900, 1631432881, 55420693056, 1882672131025 (sequence A001110 in the OEIS)
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

Solution as a Pell equation

edit edit source

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

Nk=sk2=tk(tk+1)2.

Define the triangular root of a triangular number N=n(n+1)2 to be n. In the form of the quadratic equation, n2+n−2N=0. From the quadratic formula,

n=8N+1−12.

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 x2−8y2=1. This is an instance of the Pell equation x2−ny2=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

xk+1=2xkx1−xk−1,yk+1=2ykx1−yk−1.

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:

sk=yk,tk=xk−12,Nk=yk2.

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 OEIS: A001110, OEIS: A001109, and OEIS: A001108 respectively.

Explicit formula

edit edit source

In 1778 Leonhard Euler determined the explicit formula[1][2]: 12–13 

Nk=((3+22)k−(3−22)k42)2.

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

Nk=132((1+2)2k−(1−2)2k)2=132((1+2)4k−2+(1−2)4k)=132((17+122)k−2+(17−122)k).

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

sk=(3+22)k−(3−22)k42,tk=(3+22)k+(3−22)k−24.

Recurrence relations

edit edit source

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

Nk=34Nk−1−Nk−2+2,with N0=0 and N1=1;Nk=(6Nk−1−Nk−2)2,with N0=0 and N1=1.

We have[1][2]: 13 

sk=6sk−1−sk−2,with s0=0 and s1=1;tk=6tk−1−tk−2+2,with t0=0 and t1=1.

Other characterizations

edit edit source

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:

(4n(n+1))(4n(n+1)+1)2=4n(n+1)2(2n+1)2.

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(1−z)(z2−34z+1)=1+36z+1225z2+⋯

See also

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

Notes

edit edit source
  1. ^ a b Dickson, Leonard Eugene (1999) [1920]. History of the Theory of Numbers. Vol. 2. Providence: American Mathematical Society. p. 16. ISBN 978-0-8218-1935-7. Wikipedia revision 1355039347, retrieved 2026-11-18
  2. ^ a b c Euler, Leonhard (1813). "Regula facilis problemata Diophantea per numeros integros expedite resolvendi (An easy rule for Diophantine problems which are to be resolved quickly by integral numbers)". Mémoires de l'Académie des Sciences de St.-Pétersbourg (in Latin). 4: 3–17. Retrieved 2009-05-11. According to the records, it was presented to the St. Petersburg Academy on May 4, 1778. Wikipedia revision 1355039347, retrieved 2026-11-18
  3. ^ Weisstein, Eric W. "Square Triangular Number". MathWorld. Wikipedia revision 1355039347, retrieved 2026-11-18
  4. ^ Ball, W. W. Rouse; Coxeter, H. S. M. (1987). Mathematical Recreations and Essays. New York: Dover Publications. p. 59. ISBN 978-0-486-25357-2. Wikipedia revision 1355039347, retrieved 2026-11-18
  5. ^ Pietenpol, J. L.; Sylwester, A. V.; Just, Erwin; Warten, R. M. (February 1962). "Elementary Problems and Solutions: E 1473, Square Triangular Numbers". American Mathematical Monthly. 69 (2). Mathematical Association of America: 168–169. doi:10.2307/2312558. ISSN 0002-9890. JSTOR 2312558. Wikipedia revision 1355039347, retrieved 2026-11-18
  6. ^ Plouffe, Simon (August 1992). "1031 Generating Functions" (PDF). University of Quebec, Laboratoire de combinatoire et d'informatique mathématique. p. A.129. Archived from the original (PDF) on 2012-08-20. Retrieved 2009-05-11. Wikipedia revision 1355039347, retrieved 2026-11-18
edit edit source Classes of natural numbers 3-dimensional 4-dimensional P-adic numbers-related Digit-composition related Digit-permutation related Divisor-related Other

Text derived from https://en.wikipedia.org/w/index.php?oldid=1355039347 under CC BY-SA 4.0; modifications have been made.