Problem

Source: Saudi Arabia JBMO training test 2 2019, P3

Tags: number theory



Is there positive integer $n$, such that $n+2$ divides $S=1^{2019}+2^{2019}+...+n^{2019}$