Problem

Source: (2021-) 2022 XV 15th Dürer Math Competition Finals Day 2 E+14

Tags: number theory, remainder



Benedek scripted a program which calculated the following sum: $1^1+2^2+3^3+. . .+2021^{2021}$. What is the remainder when the sum is divided by $35$?