Let $n$ and $p$ be positive integers, with $p>3$ prime, such that: i) $n\mid p-3;$ ii) $p\mid (n+1)^3-1.$ Show that $pn+1$ is the cube of an integer.
Source: Olimphíada 2022- Problem 1/Level 3
Tags: number theory, cubes
Let $n$ and $p$ be positive integers, with $p>3$ prime, such that: i) $n\mid p-3;$ ii) $p\mid (n+1)^3-1.$ Show that $pn+1$ is the cube of an integer.