x^40+2.x^20+9 = [x^20 +3]^2 - 4x^20 = [x^20+3]^2 -[2x^10]^2 = [x^20-2x^10+3].[x^20+2x^10+3]
x^12+x^6+1 = x^12 + 2x^6 +1 - x^6 = [x^6 +1]^2 -[x^3]^2 = [x^6 -x^3 +1].[x^6+x^3+1]
x^16+x^8+1 =[x^8+1]^2 - [x^4]^2 = [x^8-x^4+1].[x^8+x^4+1]
x^4+x^2+1 = x^4+2x^2+1 - x^2 = [x^2+1]^2-x^2 = [x^2-x+1].[x^2+x+1]