Given f(x)=(c+1)x2+(1−c2)x+2k and f(x+y)=f(x)+f(y)−xy for all x,y∈R. Setting x=y=0 yields f(0)=2f(0), so f(0)=0 and hence 2k=0⇒k=0.
Thus f(x)=(c+1)x2+(1−c2)x, and from the functional equation we have f(x+y)=(c+1)(x+y)2+(1−c2)(x+y) while f(x)+f(y)−xy=(c+1)x2+(1−c2)x+(c+1)y2+(1−c2)y−xy.
Comparing the coefficients of xy gives 2(c+1)=−1⇒c+1=−21⇒c=−23, and for the linear terms 1−c2=1−49=−45 matches on both sides. Therefore f(x)=−21x2−45x.
It follows that f(n)=−21n2−45n and so ∑n=120f(n)=−21∑n=120n2−45∑n=120n with ∑n=120n2=620×21×41=617220=2870 and ∑n=120n=220×21=210, giving ∑n=120f(n)=−22870−45×210=−1435−41050=−1435−262.5=−1697.5.
The answer is 3395.