Exciting Game Announcement!

We are thrilled to introduce our latest game, which promises to bring hours of fun and entertainment. This game is available exclusively for PC.

To gain access to the game, you must first solve the following problem:

Problem: Let P(x) be a polynomial of degree 2024 defined by:

P(x)=x2024+a2023x2023+a2022x2022++a1x+a0,

where all coefficients ai are integers. It is known that for any integer n, P(n) is divisible by n2+n+1. Determine the sum of all the coefficients of the polynomial P(x) such that a2023<3997.

Important Notice: This game is intended solely for entertainment and should not be used during work hours. Please play responsibly and enjoy your time!