Problem

Source: 2016 Peru Cono Sur TST P4

Tags: combinatorics, Peru



Let $n$ be a positive integer. Andrés has $n+1$ cards and each of them has a positive integer written, in such a way that the sum of the $n+1$ numbers is $3n$. Show that Andrés can place one or more cards in a red box and one or more cards in a blue box in such a way that the sum of the numbers of the cards in the red box is equal to twice the sum of the numbers of the cards in the blue box. Clarification: Some of Andrés's letters can be left out of the boxes.