Divide (a^(2n)-a^n-6)/(a^n+8)