This is a problem from standupmaths, from Youtube.
Question:
Think of a number which is a triangle number and a square number.
This can be expressed using a single equation:
$$x^2=\frac{y(y+1)}{2}$$
If you use trial and improvement, you have the square numbers:
$[1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289...]$
And triangle numbers:
$[1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210...]$
The only numbers that appears in both of these lists are $$36, 6^2 = 36, \frac{8*9}{2} = 36, 1, 1^2=1, \frac{1*2}{2}=1$$
Are there any beyond this?
Well, $2x^2=y^2+y$. How do I go on from this? What do I have to use?
What are the numbers where the number you substitute in are equal, and their results are equal?
Lets say:
What if $x=y$?
$$x^2=\frac{x(x+1)}{2}$$
$2x^2=x(x+1)$
$2x^2=x^2+x$
$x^2-x=0$
$x(x-1)=0$
$x$ or $(x-1)$ has to be $0$.
Therefore, $x = 0.5\pm 0.5$
Second question:
But is $0$ technically a square or triangle number?