2. The number of positive integers for which the equation has positive integer solutions is ( ).
(A) 0
(B) 1
(C) more than 1, but only finitely many
(D) infinitely many
Problem 379
Official solution
2. (B).
Let the greatest common divisor of and be , , ( and are coprime), substituting into yields . Therefore, and , hence , at this point . When , we can take , which satisfies the requirement.
Solution: From , we get , i.e., the equation has a rational solution, so its discriminant should be a perfect square. Let (where is a non-negative integer), then . Hence , or . From this, it is easy to see that .