Solve the equation cos⁡2x+cos⁡22x+cos⁡23x=1\cos^2 x + \cos^2 2x + \cos^2 3x = 1.