Cody

Problem 2463. Sum of Dividend Digits

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.

Example:

 remainder = 7
 divisor = 12

then dividend = 1111 and the resulting sum is 4.

Solution Stats

46.88% Correct | 53.13% Incorrect
Last solution submitted on Jun 01, 2016

Solution Comments

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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more