Divisibilityhard
0:00.0

Let v2(x)v_2(x) denote the exponent of the highest power of 2 dividing xx. Evaluate the sum S=i=12024v2(i2+2i)S = \sum_{i=1}^{2024} v_2(i^2 + 2i).