Х³ - х² - х - 2 = х³ - х² - х - 2 - 1 + 1 = (х³ - 1) - (х² + х + 1) = (х - 1) * (х² + х + 1) -
- (х² + х + 1) = (х² + х + 1) * (х - 1 - 1) = (х² + х + 1) * (х - 2)
---------------------------------------------------------------------------------------------------