Problem

Source: Stars of Mathematics 2023 P2 (senior level)

Tags: number theory, Perfect Squares



Let $a{}$ and $b{}$ be positive integers, whose difference is a prime number. Prove that $(a^n+a+1)(b^n+b+1)$ is not a perfect square for infinitely many positive integers $n{}$. Proposed by Vlad Matei