Factoring+special+cases

http://www.phschool.com/webcodes10/index.cfm?fuseaction=home.gotoWebCode&wcprefix=ate&wcsuffix=0907