Math, asked by Ukrain, 9 months ago

A Three digit number is such that all of its digits are different the number is divisible by 6 find the largest and the smallest number satisfying the above conditions​

Answers

Answered by Anonymous
2

: N = 11, setOfDigits = {3, 4, 5, 4, 5, 3, 5, 3, 4, 4, 0}

Output: 5554443330

After arranging all the elements in a non-increasing order as 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 0. The sum of all the digit is 40. Thus when we found out that the remainder of 40, when divided by 3, is 1. Then we’ll start traversing from the end to the start and if we encounter any digit with the same remainder, which we got 4 at the position 7 will be erased it. Now the sum is 36 which is divisible 3 and the new largest number will be 5554443330, which is divisible by 2, 3 and 5.

Answered by jass9584
3

Answer:

A three digit no.

who's all digits are different........

And the no. is divisible by 6

smallest : 012

012/6 = 02 = 2

largest : 984

984/6 = 164

HOPE THIS HELPS U.....

Similar questions