Problem

Source: 2012 Cuba MO 2.5

Tags: number theory, diophantine, Diophantine equation



Find all pairs $(m, n)$ of positive integers such that $m^2 + n^2 =(m + 1)(n + 1).$