Problem

Source: Portugal OPM 2019 p2

Tags: number theory, Digits



A five-digit integer is said to be balanced i f the sum of any three of its digits is divisible by any of the other two. How many balanced numbers are there?