You are viewing a single comment's thread. Return to all comments →
It is Euclid's method to generate all primitive pythagorean triplets.
See this visualization in geometry: https://en.wikipedia.org/wiki/Pythagorean_triple#Geometry_of_Euclid.27s_formula
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #39: Integer right triangles
You are viewing a single comment's thread. Return to all comments →
It is Euclid's method to generate all primitive pythagorean triplets.
See this visualization in geometry: https://en.wikipedia.org/wiki/Pythagorean_triple#Geometry_of_Euclid.27s_formula