The polynomial, $f(x) = x^{2n} + px - 4$, where n and p are real constants, has a remainder of -8 when divided by $(x-1)$ and a remainder of 172 when divided by $(x+4)$. Find the values of n and p.
I managed to solve for p, but got stuck when finding n.
By remainder theorem, When $f(x)$ is divided by $(x-c)$, the remainder is equal to $f(c)$. $∴ f(1) = -8$
$1^{2n} + p - 4 = -8$
$p = -5$
$f(-4) = 172$
$(-4)^{2n} + (-5)(-4) -4 = 172$
$(-4)^{2n} = 156$
And I'm stuck here due to it is impossible to log a negative number.