factor d^4 + a(a+d)(a+2d)(a+3d)