Let a1,a2,⋯ ,ana_1, a_2, \cdots, a_na1,a2,⋯,an be real constants, xxx a real variable, and
f(x)=cos(a1+x)+12cos(a2+x)+14cos(a3+x)+⋯+12n−1cos(an+x).f(x) = \cos(a_1 + x) + \frac{1}{2}\cos(a_2 + x) + \frac{1}{4}\cos(a_3 + x) + \cdots + \frac{1}{2^{n-1}}\cos(a_n + x).f(x)=cos(a1+x)+21cos(a2+x)+41cos(a3+x)+⋯+2n−11cos(an+x).
Given that f(x1)=f(x2)=0f(x_1) = f(x_2) = 0f(x1)=f(x2)=0, prove that x2−x1=mπx_2 - x_1 = m\pix2−x1=mπ for some integer mmm.