A square-triangle number is a number that is a perfect square and is a triangular number. For example, 1 and 36 are square-triangle numbers.
How many square-triangles numbers are there?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We are asked to find all numbers N = a 2 = 2 1 ( b 2 + b ) .
This can be manipulated into ( 2 b + 1 ) 2 − 2 ( 2 a ) 2 = 1 .
This is a pell's equation , and since ( 3 , 2 ) is a starting solution, there are finitely many of them. The next few solutions are ( 1 7 , 1 2 ) , ( 5 7 7 , 4 0 8 ) , ( 1 9 6 0 1 , 1 3 8 6 0 ) , … .
Since we have N = a 2 , this corresponds to 1 2 , 6 2 , 2 0 4 2 , 6 9 3 0 2 , … , of which the first 2 terms match the 2 examples in the problem. These are not easy to find or guess directly, but easy once you know the underlying theory.