Problem

Source: Balkan Mathematical Olympiad 2008 Problem 4

Tags: inequalities, algebra, polynomial, modular arithmetic, induction, number theory, relatively prime



Let $ c$ be a positive integer. The sequence $ a_1,a_2,\ldots$ is defined as follows $ a_1=c$, $ a_{n+1}=a_n^2+a_n+c^3$ for all positive integers $ n$. Find all $ c$ so that there are integers $ k\ge1$ and $ m\ge2$ so that $ a_k^2+c^3$ is the $ m$th power of some integer.