Solve the equation cosnx−sinnx=1\cos^n x - \sin^n x = 1cosnx−sinnx=1, where nnn is a natural number.