Solution:
Define g(x)=2x2−1, so that q(x)=−21+g(x+21). Thus
qN(x)=0⟺21=gN(x+21)
where N=2016.
But, viewed as function g:[−1,1]→[−1,1] we have that g(x)=cos(2arccos(x)). Thus, the equation qN(x)=0 is equivalent to
cos(22016arccos(x+21))=21
Thus, the solutions for x are
x=−21+cos(22016π/3+2πn)n=0,1,…,22016−1
So, the roots are negative for the values of n such that
31π<22016π/3+2πn<35π
which is to say
61(22016−1)<n<61(5⋅22016−1)
The number of values of n that fall in this range is 61(5⋅22016−2)−61(22016+2)+1=61(4⋅22016+2)=31(22017+1).