\(a^6-1=\left(a^3-1\right)\left(a^3+1\right)=\left(a-1\right)\left(a+1\right)\left(a^2+a+1\right)\left(a^2-a+1\right)\)
\(a^6-1=\left(a^3-1\right).\left(a^3+1\right)=\left(a-1\right).\left(a^2+a+1\right).\left(a-1\right).\left(a^2-a+1\right)\)
\(=\left(a-1\right).\left(a+1\right).\left(a^4+a^2+1\right)=\left(a-1\right).\left(a+1\right).\left(a^4-13a^2+14a^2+1\right)\)
\(=\left(a-1\right).\left(a+1\right).\left(a^2-4\right).\left(a^2-9\right)+14a^2.\left(a-1\right).\left(a+1\right)\)
đến đây dễ rồi, b tự làm tiếp :))