MathDB
Two disjoints sets

Source:

September 20, 2021
Sum

Problem Statement

We divide the set {1,2,,2n}\{1,2,\cdots,2n\} into two disjoint sets : {a1,a2,,an}\{a_1,a_2,\cdots,a_n\} and {b1,b2,,bn}\{b_1,b_2,\cdots,b_n\} such that : a1<a2<<an and b1>b2>>bn.a_1<a_2<\cdots<a_n\text{ and } b_1>b_2>\cdots>b_n. Show that : a1b1++anbn=n2.|a_1-b_1|+\cdots+|a_n-b_n|=n^2.