Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Problem 2463. Sum of Dividend Digits

Created by Omer

Find the smallest number that consist of only number 1's (e.g. 11111111111) which satisfy a given divisor and remainder. Then return the sum of its digits.


 remainder = 7
 divisor = 12

then dividend = 1111 and the resulting sum is 4.


Problem Group

Solution Statistics

12 correct solutions 12 incorrect solutions
Last solution submitted on Apr 12, 2015

Solution Comments