Problem

Source: Saint Petersburg olympiad 2024, 10.4

Tags: algebra, number theory, polynomial



Let's consider all possible quadratic trinomials of the form $x^2 + ax + b$, where $a$ and $b$ are positive integers not exceeding some positive integer $N$. Prove that the number of pairs of such trinomials having a common root does not exceed $N^2$.