b) x7 + x2 + 1 = (x7 – x) + (x2 + x + 1)
= x.(x6 – 1) + (x2 + x +1)
= x.(x3 - 1).(x3 +1) + (x2 + x +1)
= x.(x-1).(x2 + x +1).(x3 +1) + (x2 + x +1)
= (x2 + x +1).[x.(x-1).(x3 +1) + 1]
= (x2 + x +1).[(x2-x).(x3 +1) + 1]
= (x2 + x +1).(x5-x4 + x2 -x + 1
\(h\left(x\right)=x^7+x^5+1=x^7+x^6+x^5-x^6+1=x^5\left(x^2+x+1\right)-\left(x^3+1\right)\left(x^3-1\right)\)
\(=x^5\left(x^2+x+1\right)-\left(x^3+1\right)\left(x-1\right)\left(x^2+x+1\right)=\left(x^2+x+1\right)\left(x^5-x^4+x^3-x+1\right)\)