5. Multiply

(a + b)(a2 - ab + b2)

Multiply each term in the first polynomial by each term in the other polynomial.

and the answer is

a3 + b3

This illustrates that a sum of odd powers always factors. One of the factors of   an + bn   is   a + b.   The first term in the other factor is   an-1   and each subsequent term has one less factor of   a   and one more factor of   b,   until you get to   bn-1.   When factoring a sum of odd powers, the signs on each of these terms alternates. That is the reason it only works with sums of odd powers. With sums of odd powers, the last term is   + bn-1.