Factoring with repeated use of the difference of squares formula