LCM of (x^2+10x+9) and (x^2-1)