Given,
f(x)=2x2−x−1 and ∣f(n)∣≤800
So, 2n2−n−801≤0
⇒n2−21n−2801≤0
⇒(n−41)2−2801−161≤0
⇒(n−41)2−166409≤0
⇒(n−41−46409)(n−41+166409)≤0
⇒41−6409≤n≤41+6409
Since given n is integer,
So, n=−19,−18−17,……..0,1,2,……,20
Now n∈S∑f(x)=∑(2x2−x−1)
=(2∑x2−∑x−∑1)
=2[192+182+….+12+12+22+….+192+202]−20−40 \displaystyle (\text{as }\sum x=20&\sum 1=40)
=4[12+22+…..+192]+2[202]−20−40
=64×19×20×(2×19+1)+2×400−60
=64×19×20×39+800−60−9880+800−60
=10620