Factor 2d^2+16d+32