IMO 1974 LL USA39

Let n be a positive integer, n \geq2, and consider the polynomial

IMO 1974 LL USA39

Origin: USA

Problem

Let n be a positive integer, n \geq2, and consider the polynomial equation xn −xn−2 −x + 2 = 0. For each n, determine all complex numbers x that satisfy the equation and have modulus |x| = 1.