IMO 1986 LL MON52

Solve the system of equations

IMO 1986 LL MON52

Origin: MON

Problem

Solve the system of equations tan x1 + cot x1 = 3 tan x2, tan x2 + cot x2 = 3 tan x3, \cdot \cdot \cdot \cdot \cdot \cdot tan xn + cot xn = 3 tan x1.