The problem with your solution is that the general form of Pythagorean triplets is not (2m, m^2 + 1, m^2-1)- it's actually (2mn, m^2 + n^2, m^2 - n^2). You cannot assume that n = 1.
Read more… (36 words)
The problem with your solution is that the general form of Pythagorean triplets is not (2m, m^2 + 1, m^2-1)- it's actually (2mn, m^2 + n^2, m^2 - n^2). You cannot assume that n = 1.