Problem

Source: Irmo 2018 p2 q9

Tags: perfect cube, Sequence, recurrence relation, number theory



The sequence of positive integers $a_1, a_2, a_3, ...$ satisfies $a_{n+1} = a^2_{n} + 2018$ for $n \ge 1$. Prove that there exists at most one $n$ for which $a_n$ is the cube of an integer.