Problem

Source: 2024 Vietnam National Olympiad - Problem 2

Tags: algebra, polynomial



Find all polynomials $P(x), Q(x)$ with real coefficients such that for all real numbers $a$, $P(a)$ is a root of the equation $x^{2023}+Q(a)x^2+(a^{2024}+a)x+a^3+2025a=0.$