I just started to read "Friendly Introduction to Number Theory" but I am getting stuck in the first exercises.
1.1. The first two numbers that are both squares and triangles are 1 and 36. Find the next one and, if possible, the one after that. Can you figure out an efficient way to find triangular–square numbers? Do you think that there are infinitely many?
https://www.math.brown.edu/~jhs/frintch1ch6.pdf
I found how to find out the number which is both square and triangle. (don't know if this is effective way)
https://github.com/y-zono/friendly-introduction-number-theory/blob/master/01/1-1/main.go
However how can I answer "Do you think that there are infinitely many?"? I think I need to find the formula but no idea yet. Can you please help me?
Have a look at https://en.wikipedia.org/wiki/Square_triangular_number So, the answere is yes!