The number of solution of the equation sin x+sin 2x+sin 3x=cos x+cos2x+cos 3x,0≤x≤2π is
7
5
4
6
(sin x+sin 3x)+sin 2x=(cos x+cos 3x)+cos 2x⇒(sin 2x)(2 cos x+1)=cos 2x(2cos x+1)⇒cos x=−12,tan2x=1⇒x=2nπ±2π3,2x=nπ+π40≤x≤2πx=π8,5π8,2π3,9π8,4π3,13π8
The number of values of x between 0 and 2π such that the equation sinx+sin2x+sin3x=cosx+cos2x+cos3x must be ___