Solve for n g(n)=n^2+4n