Factoring when a is not one