Find the irreducible factors of the polynomial $$x^3 + 5x^2 + 2x + 6 \in \mathbb{Z}_7 [ x ]$$
I am having trouble understanding irreducible factors for my algebra module and have an exam next week. If any one could help me understand this sample question, I would be so grateful
Hint: Over a field, a cubic polynomial either is irreducible or has a factor of degree one, that is, a root.
Or:
$$ x^3 + 5x^2 + 2x + 6 = x^3 - 2x^2 + 2x -1 = x^3 - 2x^2 + x + x-1 = x(x^2 - 2x + 1) + x-1 = x(x-1)^2 + x-1 =(x-1)(x(x-1)+1) =(x-1)(x^2-x+1) =(x-1)(x^2+6x+8) =(x-1)(x+2)(x+4) =(x-1)(x-3)(x-5) $$