MathCastle
AIMESuperchallenge

AIME · Superchallenge problem

Find the remainder when the sum of all positive integers n≤500n \le 500 for which n2+n+1n^2 + n + 1 is divisible by 1111 is divided by 10001000.

Practice more like this