Problem

Source:

Tags: combinatorics, algebra



You have a list of 2023 numbers, where each one can be 1, 0, 1 or 2. The sum of all numbers is 19 and the sum of their squares is 99. What are the minimum and maximum values of the sum of the cubes of those 2023 numbers?