Problem

Source:

Tags: Bases, number theory



Let $n$ be a positive integer. If the number $1998$ is written in base $n$, a three-digit number with the sum of digits equal to $24$ is obtained. Find all possible values of $n$.