Combinatorial problems focused on the digits contained in the notation of a given number are commonly included in mathematical competitions. The paper shows how it is possible to approach the solution of such tasks.