Find the sum to n terms of the series nth terms is given by 9. n^2 + 2^n