Problem: How to find the number of right-angled triangles with integer sides and inradius $2009$.
Please help, as I have no clue how to proceed with this problem. I do know that the inradius of a right-angle triangle with sides $a$, $b$, and $c$ is given by
$$r = \frac{ab}{a+b+c}.$$
We also know that $a=k(u^2-v^2)$, $b=2kuv$, $c=k(u^2+v^2)$ for some integers $k,u,v$, so $$ 2k^2(u^2-v^2)uv=2009k\cdot(u^2-v^2+2uv+u^2+v^2)$$ i.e. $$ k(u-v)v = 2009.$$ Now match the factors on the left with factors of $2009$.