MathDB
sum of differences of largest to smallest of subsets of {1,2,...,n}

Source: Mathematics Regional Olympiad of Mexico Center Zone 2009 P6

November 10, 2021
combinatorics

Problem Statement

For each subset AA of {1,2,,n}\{1,2, \dots, n \} , let MAM_A be the difference between the largest of the elements of AA and the smallest of the elements of AA . Finds the sum of all values ​​of MAM_A when all possible subsets AA of {1,2,,n}\{1,2, \dots, n \} are considered.