Problem

Source: 2022 IMOC N5

Tags: IMOC, number theory



Find all solution $(p,r)$ of the "Pythagorean-Euler Theorem" $$p^p+(p+1)^p+\cdots+(p+r)^p=(p+r+1)^p$$Where $p$ is a prime and $r$ is a positive integer. Proposed by Li4 and Untro368