Maximum value of a function whose sum of roots is known

26 Views Asked by At

I have a set of unequal positive integers $X_1,X_2,X_3,X_4,....,X_n$ whose sum is known. How do I find the maximum value of $(X_1^2-X_1)(X_2^2-X_1)(X_3^2-X_3)....(X_N^2-X_N)$?