Problem

Source: 2010 Cuba MO 1.1

Tags: number theory, Digits



The combination to open a safe is a five-digit number. different, randomly selected from $2$ to $9$. To open the box strong, you also need a key that is labeled with the number $410639104$, which is the sum of all combinations that do not open the box. What is the combination that opens the safe?