Factoring perfect squares: negative common factor