Третий номер, второй пример.
Ax³ + bx³ + bx² + ax² + ax + bx + a + b = x³(a + b) + x²(a + b) + x(a + b) + (a + b) = (a + b)(x³ + x² + x + 1) = (a + b)(x²(x + 1) + (x + 1) = (a + b)(x² + 1)(x + 1)