Hacker News new | past | comments | ask | show | jobs | submit login

There are Pythagorean triples (a, b, c) for which there do not exist integers m, n with a = m^2 - n^2, b = 2mn, c = m^2 + n^2.





But all such triples are non-primitive. I.e. they are of the form (ka, kb, kc) with k>1. So all Pythagorean triples can be generated as a scaled primitive triple (a,b,c) that is generated by Euclid's formula from m,n.

Learned something new today. For other interested: https://en.wikipedia.org/wiki/Pythagorean_triple#Generating_...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: