Problem

Source: 2020 Argentina OMA L3 p5

Tags: inequalities, Sum, permutation, algebra



Determine the highest possible value of: $$S = a_1a_2a_3 + a_4a_5a_6 +... + a_{2017}a_{2018}a_{2019} + a_{2020}$$where $(a_1, a_2, a_3,..., a_{2020})$ is a permutation of $(1,2,3,..., 2020)$. Clarification: In $S$, each term, except the last one, is the multiplication of three numbers.