4. Given integers and , not equal to -1. The quadratic trinomial has two integer roots. Prove that .
Problem 1270
Official solution
Solution. We will assume that , otherwise the proof is already complete. Since the trinomial has integer roots, its discriminant is a perfect square, i.e., for some non-negative integer . Then the numbers and have the same parity. From the relation and even, so . Therefore, , and thus . If , then . In the case where both brackets are positive, one of the numbers and equals 2, and the other is no more than 3, so their sum does not exceed 6. If one bracket is zero (let's say for definiteness), then . This is possible only if , since the numbers and have the same parity, and for . Thus, . If one of the brackets is negative (let's say the first one for definiteness), then and . Therefore, and, thus, , which is impossible (if this is obvious, and if , then and the first factor is negative, while the second is positive).