Find all positive integers nn for which there exist positive integers x1,x2,,xnx_1, x_2, \ldots, x_n such that

1x12+2x22+4x32++2n1xn2=1.\dfrac{1}{x_1^2} + \dfrac{2}{x_2^2} + \dfrac{4}{x_3^2} + \cdots + \dfrac{2^{n-1}}{x_n^2} = 1.