Generating Pythagorean triples for $a^2+b^2=5c^2$? Just trying to figure out a way to generate triples for $a^2+b^2=5c^2$. The wiki article shows how it is done for $a^2+b^2=c^2$ but I am not sure how to extrapolate.

Consider the circle $$x^2+y^2=5$$ Find a rational point on it (that shouldn't be too hard). Then imagine a line with slope $t$ through that point. It hits the circle at another rational point. So you get a family of rational points, parametrized by $t$. Rational points on the circle are integer points on $a^2+b^2=5c^2$. 
