Problem

Source: JBMO 2003, Problem 1

Tags:



Let $n$ be a positive integer. A number $A$ consists of $2n$ digits, each of which is 4; and a number $B$ consists of $n$ digits, each of which is 8. Prove that $A+2B+4$ is a perfect square.