Problem

Source: Brazilian Mathematical Olympiad 2024, Level 2, Problem 4

Tags: number theory, combinatorics, counting



A number is called trilegal if its digits belong to the set \(\{1, 2, 3\}\) and if it is divisible by \(99\). How many trilegal numbers with \(10\) digits are there?