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)

Active In

International Mathematics Olympiad

International Olympiad in Informatics

Artificial Intelligence

Technology

Algorithms and Data Structures

Deep Astronomy

Deep Learning

International Olympiad on Astronomy & Astrophysics

Virtual Reality

Competitive Programming

Featured Contributions

comment in this discussion

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)

comment in this discussion

comment in this discussion