Du kannst deine Ergebnisse selbst kontrollieren:
https://sagecell.sagemath.org/
F3 = FiniteField(3)
A = Matrix(F3, [[1,1,2,2,2,2],
[1,1,1,1,1,2],
[2,0,1,1,2,2],
[1,0,2,0,2,1],
[0,1,2,2,2,1],
[2,1,0,2,0,1]])
P = charpoly(A)
print(P)
f = P.factor()
print(f)
p = f[0][0]
print(p)
print("p(A):")
print(p(A))
print("p^2(A):")
print((p**2)(A))
print("p^3(A):")
print((p**3)(A))