Solving $x(x+1) = 2y(y+1)$ I've got this : y = $\frac{1}{2} \sqrt{2x^2+2x+1}$ so $2x^2+2x+1 = n^2$ so $x \equiv 0 \pmod 4$ or $x \equiv -1 \pmod 4$ and I totally stuck...
-
4Your question should be clear without the title. After the title has drawn someone's attention to the question by giving a good description, its purpose is done. The title is not the first sentence of your question, so make sure that the question body does not rely on specific information in the title. – Simply Beautiful Art Dec 03 '17 at 16:09
-
3Also, consider adding more tags. This will help your question become more clear as well as attract users to your question. – Simply Beautiful Art Dec 03 '17 at 16:10
-
Try multiplying $2x^2+2x+1=n^2$ by $2$ and complete the square. – Mark Bennet Dec 03 '17 at 16:40
-
Would you mind explaining how $y = \frac 12 \sqrt{2x^2 + 2x + 1}$? I'm struggling to understand this. – Stefan4024 Dec 03 '17 at 16:49
-
Similar problems here to solve. It is better to have a General formula. https://math.stackexchange.com/questions/2543688/when-is-fraca2bb2a-an-integer/2543998#2543998 – individ Dec 03 '17 at 16:55
2 Answers
Solving it as quadratic equation in terms of $x$ we have:
$$x^2 + x -2y^2 - 2y = 0$$
$$x= \frac{-1 \pm \sqrt{1 + 8y^2 + 8y}}{2}$$
Now we have that $8y^2 + 8y + 1 = m^2$, as $x$ is an integer. Again solving for $y$ we have:
$$y = \frac{-8 \pm \sqrt{64 + 32m^2 - 32}}{16}$$
So we must have that $2(m^2 + 1)$ is a square. So we get $n^2 - 2m^2 = 2$. This Diophantene Equation has infinitely many solutions. For example:
$$n_k + m_k\sqrt{2} = (10 + 7\sqrt{2})(3 + 2\sqrt{2})^k$$
generates infinitely many. Now note that the solutions for $n$ are even, but never divisible by $4$, so we have $m^2 + 1 = 2s^2$, where $s$ is odd. So:
$$y = \frac{-8 \pm 8s}{16} \in \mathbb{Z}$$
$$x = \frac{-1 \pm \sqrt{2s^2 - 1}}{2} \in \mathbb{Z}$$
So we have that each solution of $n^2 - 2m^2 = 2$ generates a solution of $x(x+1)=2y(y+1)$, so there are infinitely many of them. Some examples are: $(x,y) = (3,2),(20,14),(119,84),(696,492) \dots$
- 35,843
$$x(x+1) = 2y(y+1) \Leftrightarrow 4x^2+4x=2(4y^2+4y)\Leftrightarrow \\4x^2+4x+1=2(4y^2+4y+1)-1 \Leftrightarrow (2x+1)^2-2(2y+1)^2=1$$
This is the Pell equation, you want the odd solutions to it.
- 132,525
-
https://math.stackexchange.com/questions/2543688/when-is-fraca2bb2a-an-integer/2543998#2543998 – individ Dec 03 '17 at 16:56