2 lines
71 B
Python

print(sum([4 * (x ** 2 + x // 2 + 1) for x in range(0, 1001, 2)]) - 3)