Artificial intelligent assistant

Contest Math Geometry problem related to Tangents of a circle $2009$ concentric circles are drawn with radii from $1$ unit to $2009$ units. From a point on the outermost circle, tangents are drawn to the inner circles. Discover the number of tangents which will have integer measure in the problem. My approach to the problem is that since the tangents are perpendicular to the radius at the point of contact. This means that I could find all the Pythagorean triplets with $2009$ as one measure. However, I wasn't getting anywhere with that approach.

I will use the approach of Pythagorean triples $a^2+b^2=c^2=2009^2$. In any _primitive_ triple ($a,b,c$ are coprime), all prime factors of $c$ are of the form $4k+1$, but $2009=7×7×41$. Thus the values of $a$ and $b$ must themselves be multiples of 49, and we get $$(49c)^2+(49d)^2=(49\cdot41)^2$$ $$c^2+d^2=41^2$$ where $c$ and $d$ are coprime. Now there are only two solutions for $(c,d)$, $(9,40)$ and $(40,9)$. Therefore the number of tangents with integer lengths is also two, and these are of lengths $49\cdot9=441$ and $49\cdot40=1960$.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a9e0837bd5d88d94036de5c1ade0fd1f