Problem

Source: Moldova EGMO TST 2021

Tags: number theory



Find all pairs of nonnegative integers $(x, p)$, where $p$ is prime, that verify $$x(x+1)(x+2)(x+3)=1679^{p-1}+1680^{p-1}+1681^{p-1}.$$