Question 23367
n^2+n+1 =8n+9
n^2-7n=8=0
(n-8)(n+1)=0
n=8 or n=-1

Cheers,
Stan H.