Problem

Source: Mongolian TST 2008, day3 problem1

Tags: number theory proposed, number theory



Given an integer $ a$. Let $ p$ is prime number such that $ p|a$ and $ p \equiv \pm 3 (mod8)$. Define a sequence $ \{a_n\}_{n = 0}^\infty$ such that $ a_n = 2^n + a$. Prove that the sequence $ \{a_n\}_{n = 0}^\infty$ has finitely number of square of integer.