Example 1. The lengths of the three sides of a triangle are all integers, and . If , then the number of such triangles is ( ).
(A) 10.
(B) 55.
(C) .
(D) Infinitely many.
(1990, Suzhou High School Competition)
Problem 423
Official solution
When , take , and , then , at this time the value of has exactly possibilities, i.e., . The table is as follows:
\begin{tabular}{c|c|c|c}
\hline & & & Number of triangles \\
\hline 1 & & & 1 \\
\hline 2 & & & 2 \\
\hline 3 & & & 3 \\
\hline & & & \\
\hline & & & \\
\hline & & & \\
\hline & & , & \\
\hline
\end{tabular}
Therefore, when , the total number of triangles that meet the conditions is . Taking , substituting into the above formula, we get
triangles), so the answer is .