MathDB
On the multiple and sum of digits

Source: 2022 Thailand MO Day 2 P10

June 16, 2022
number theory

Problem Statement

For each positive integers uu and nn, say that uu is a friend of nn if and only if there exists a positive integer NN that is a multiple of nn and the sum of digits of NN (in base 10) is equal to uu. Determine all positive integers nn that only finitely many positive integers are not a friend of nn.