Let $S = \{s_1, \ldots, s_n\} \subset \{1, \ldots, 2n\}$. Consider two operations on $S$, unfortunately both called complement in different setting: let $A(S) = \{1, \ldots, 2n\} \setminus S$ (set theory) and let $B(S) = \{2n+1-s_1, \ldots, 2n+1-s_n\}$ (permutations). In general, $A(S) \ne B(S)$, but the sums of their elements are equal.
E.g., $S = \{1,2,5\} \subset \{1, \ldots, 6\}$ has $A(S) = \{3,4,6\}$, sum 13, and $B(S) = \{2,5,6\}$, sum 13.
My question is not how to prove this (it's a nice proof appropriate for a discrete math course), rather the history of this result or at least a citation. For me, this arose in looking at applications of permutations to fair division of indivisible goods.