The first $2n$ natural numbers are arbitrarily divided into $2$ groups of $n$ each. The first group (named $a$) is arranged $a_1<\ldots<a_n$. The second group ($b$) is arranged $b_1>\ldots>b_n$. Find, with proof, the sum $|a_1-b_1| + \ldots + |a_n-b_n|$. Or more compactly $$\sum_{i=1}^n |a_i-b_i|$$
(Guess: Arbitrarily means any possible group of $n$ numbers. The modulus can't be removed because any sum can be a negative number.)
Some pattern (not sure how to create a table here)
n=1, sum=1,
n=2, sum=4, diff=3
n=3, sum=9, diff=5
n=4, sum=16, diff=7
n=5, sum=25, diff=9
I'm not a mathematician, and am just looking for some help about to start thinking on the problem. Don't solve it (but if it is solved anywhere I appreciate the link).
Suppose we color the two groups of number red and green, respectively.
We can reach any distribution of colors by starting with "$1$ to $n$ red and $n+1$ to $2n$ green", and then some number of times interchange the colors of two neighboring numbers.
If you can prove that a single interchange will never change your sum-of-differences, you will have proved that the sum doesn't depend on the coloring, and that you can compute that sum from the initial color distribution.