Problem

Source: Iran 2005

Tags: quadratics, number theory proposed, number theory



Find all $n,p,q\in \mathbb N$ that:\[2^n+n^2=3^p7^q\]