I have two integer sets ($X=\{x_1,x_2,...,x_k\}, Y=\{y_1,y_2,...,y_k\}$) with equal sizes ($k$) with unique values. I was just wondering if there are any integer solutions to: $$\sum_i x_i = \sum_i y_i$$ and $$\sum_i {x_i}^2 = \sum_i {y_i}^2$$ for any $k>2$?
There is an answer for $k=2$ here: https://www.quora.com/Does-a-b-c-d-and-ab-cd-mean-a-b-c-d
but I'm just wondering can we generalize it for $k>2$?