Problem

Source: Romanian IMO TST 2006, day 4, problem 2

Tags: quadratics, real analysis, complex numbers, algebra, polynomial, sum of roots, number theory proposed



Find all non-negative integers $m,n,p,q$ such that \[ p^mq^n = (p+q)^2 +1 . \]