HN Reader
New
Top
Best
Ask
Show
Job
A binary tree of all Pythagorean triples
174
19
1 day ago
by hakmem
This is wonderful! I’d somehow missed the classical enumeration of Pythagorean triples. I learned them as magic numbers. That structure alone is worth the price of admission.
1 day ago
by sevensor
You changed the article's title to an incorrect one. The tree of primitive Pythagorean triples is ternary, not binary. Each node has three children.
1 day ago
by not2b
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.
12 hours ago
by keithalewis
Wow, this is extremely cool! Only problem, the JS slows my Firefox almost to freezing, is it normal?
1 day ago
by lollobomb
Very nice! nit: website isn’t mobile friendly
1 day ago
by matt3210
Beautiful. Thanks for sharing.
20 hours ago
by dpunjabi24