Problem

Source: OLCOMA Costa Rica National Olympiad, Final Round, 2016 Shortlist N3 day2

Tags: Diophantine equation, diophantine, number theory



Find all natural values of $n$ and $m$, such that $(n -1)2^{n - 1} + 5 = m^2 + 4m$.