TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A binary tree of all Pythagorean triples

181 pointsby hakmem6 months ago

6 comments

sevensor6 months ago
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.
keithalewis6 months ago
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.
评论 #42213409 未加载
评论 #42213340 未加载
dpunjabi246 months ago
Beautiful. Thanks for sharing.
matt32106 months ago
Very nice! nit: website isn’t mobile friendly
lollobomb6 months ago
Wow, this is extremely cool! Only problem, the JS slows my Firefox almost to freezing, is it normal?
评论 #42208546 未加载
评论 #42208982 未加载
not2b6 months ago
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.
评论 #42205687 未加载
评论 #42205679 未加载
评论 #42205773 未加载