983*189 + sum n = 1 to 982 (-1)^(n+1) * n * (1002 - n)^2