0
$\begingroup$

I want to prove, $a^2+b^2=c^2$,there exists only 1 case such that a,b,c are consecutive non-negative integers(3,4,5).

I have no clue to prove this lemma. Please help me to prove this lemma.

$\endgroup$
4
  • 5
    $\begingroup$ I'm voting to close this question as off-topic because it is purely mathematical and has no computational content. It should be asked on Mathematics. $\endgroup$ Commented Oct 8, 2019 at 7:36
  • 1
    $\begingroup$ Hint: assume that the solutions are $n$, $n+1$ and $n+2$. $\endgroup$ Commented Oct 8, 2019 at 7:36
  • $\begingroup$ ... and note that the restriction to non-negative integers rules out the alternative solution $(a,b,c)=(-1,0,1)$ $\endgroup$
    – gandalf61
    Commented Oct 8, 2019 at 8:16
  • $\begingroup$ It is not a lemma. A lemma is a theorem that is not important itself, but is just a building block for the theorem you are really interested in. $\endgroup$
    – gnasher729
    Commented Oct 8, 2019 at 10:27

1 Answer 1

5
$\begingroup$

$n^2 + (n + 1)^2 = (n + 2)^2 \Rightarrow n^2 + n^2 + 2n + 1 = n^2 + 4n + 4 \Rightarrow 2n^2 2n + 1 = n^2 + 4n + 4 \Rightarrow n^2 - 2n - 3 = 0 \Rightarrow n = -1, 3$

Therefore, 3 is the only plausible solution.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.