โ† MAQ Software questions

Smallest number with digits 0 and 9 divisible by N

Filed under MAQ Software

Given a positive integer N (N < 500), find the smallest positive integer consisting only of the digits 0 and 9 that is evenly divisible by N. Return the result as a string.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MAQ Software questions

Collected from public candidate posts and coding forums. Updated Nov 2026.