TOPICS
Search

Hexagonal Square Number


A hexagonal square number is both a hexagonal number H_n and a square number S_m for positive integers n and m. Its indices satisfy H_n=S_m, or

 n(2n-1)=m^2.
(1)

Completing the square and rearranging gives

 (4n-1)^2-8m^2=1.
(2)

Therefore, defining x=4n-1 and y=2m gives the Pell equation

 x^2-2y^2=1.
(3)

The first few solutions are (x,y)=(3,2), (17, 12), (99, 70), (577, 408), .... These give the solutions (n,m)=(1,1), (9/2, 6), (25, 35), (289/2, 204), ..., giving the positive integer solutions (1, 1), (25, 35), (841, 1189), (28561, 40391), ... (OEIS A008844 and A046176). The corresponding hexagonal square numbers are 1, 1225, 1413721, 1631432881, 1882672131025, ... (OEIS A046177).

Closed-form solutions for integers k>=0 are

m=((3+2sqrt(2))^(2k+1)-(3-2sqrt(2))^(2k+1))/(4sqrt(2))
(4)
n=1/4{1+1/2[(3-2sqrt(2))^(2k+1)+(3+2sqrt(2))^(2k+1)]},
(5)

giving the kth hexagonal square number as

 HS_k=1/(32)[-2+(17-12sqrt(2))(3-2sqrt(2))^(4k)+(17+12sqrt(2))(3+2sqrt(2))^(4k)].
(6)

A recurrence relation for m is given by

 a_k=3a_(k-1)+sqrt(8a_(k-1)^2+1)
(7)

for integer k>=2, with a_1=1. The square root m in the closed-form solution indexed from k=0 is a_(2k+1) (M. Carreira, pers. comm., Sep. 11, 2004).


See also

Figurate Number, Hexagonal Number, Square Number

Explore with Wolfram|Alpha

References

Sloane, N. J. A. Sequences A008844, A046176, and A046177 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Hexagonal Square Number

Cite this as:

Weisstein, Eric W. "Hexagonal Square Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HexagonalSquareNumber.html

Subject classifications