Problem

Source: Moldova TST 2023

Tags: algebra



Show that if $2023$ real numbers $x_1,x_2,\dots,x_{2023}$ satisfy $x_1\geq x_2\geq\dots\geq x_{2023}\geq0,$ then $$x_1^2+3x_2^2+5x_3^2+\cdots+(2\cdot2023-1)\cdot x^2_{2023}\leq(x_1+x_2+\cdots+x_{2023})^2.$$When does the equality take place?