Solve for D n=5(m^2+D)