Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia geometry

Problem

Let be the positive integer where are 2017 distinct odd primes. A triangle is called nice if it is a right triangle with integer side lengths and the inradius is . Find the number of nice triangles (two triangles are considered different if their tuples of length of sides are different).

problem
Solution
Consider the right triangle with incircle () and are tangent points of on sides . It is easy to see that is a square of side .



Denote , then we can see that from a pair with , we can construct a right triangle satisfying the given condition. Thus, to count the number of triangles, we will count the number of pairs . Notice that



and



Hence,



This implies that .

Since , then has positive divisors.

These divisors can be partitioned into pairs of the form , and from each pair, we can find one pair which implies that there are exactly triangles satisfying the given conditions.
Final answer
3^{2017}

Techniques

Triangle centers: centroid, incenter, circumcenter, orthocenter, Euler line, nine-point circleTangentsτ (number of divisors)