MathDB
Economic crisis :(

Source: Kyiv City MO 2024 Round 2, Problem 8.4/9.3

February 4, 2024
combinatoricsnumber theory

Problem Statement

In a certain magical country, there are banknotes in denominations of 20,21,22,2^0, 2^1, 2^2, \ldots UAH. Businessman Victor has to make cash payments to 4444 different companies totaling 4400044000 UAH, but he does not remember how much he has to pay to each company. What is the smallest number of banknotes Victor should withdraw from an ATM (totaling exactly 4400044000 UAH) to guarantee that he would be able to pay all the companies without leaving any change?
Proposed by Oleksii Masalitin