Medium #3

An oddie number is a 3 3 -digit number with all three digits odd. The number of oddie numbers divisible by 3 3 is


The answer is 41.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Take a three-digit number ABC. To become divisible by 3, A + B + C must be a multiple of 3. And by the condition, all digits must be odd so (1, 3, 5, 7, 9) are only numbers for A,B, and C.

Since A + B + C is congruent to 0 (mod 3) The digits to chosen are (1,0,2,1,0) mod 3. There are four cases to exhibit:

Case 1: When (0,0,0) mod 3, we can choose 8 ways. (e.g. 333, 339, 393, 933, 399, 939, 993, 999)

Case 2: When (1,1,1) mod 3, there are also 2 digits to choose in between so there are also 8 ways.

Case 3: When (2,2,2) mod 3, there is only one number that satisfies this and this is 555.

Case 4: When (1, 0, 2) or any permutation, we have 4 ways to choose the distinct digits but there are 6 possible ways to arrange the digits, hence there are 24 ways to do so.

Hence, summing, we have 41 ways.

An alternative solution could be as follows: The number of 3-digit numbers that have only odd digits can be found out as (5x5x5=125). Number of 3-digit oddies divisible by 3 will be floor(125/3) = floor(41.67) = 41.

Sanket Bhamwari - 6 years, 10 months ago

Why does this not include negative numbers?? The question doesn't specify that they have to be positive.

Tristan Goodman - 3 months, 1 week ago

Since the digits can only be 1/3/5/7/9, we have to consider only 1 of each possible permutation because if 117 is divisible by 3(by sum of digits test) , so would the other 2 combinations , ie 171 and 711)

Similarly, if 135 is divisible by 6, so would the other 5 combinations, namely, 153, 315, 513, 351 and 531

Finally we get the following divisible combinations : 111, 333, 555, 777, 999 - 5

Combinations each yielding 3 numbers 117, 177 , 339, 399, 799 totaling 15

Combinations each yielding 6 numbers (3!) 135,159,357,579 totaling 24

So totally we have 5 + 15 + 24 = 44 numbers

and not 41

Sundar R - 6 years, 10 months ago

Log in to reply

Sorry, 799 and related combinations should not be included because the digits add upto 25 which is not divisible by 3

Hence we have 44-3 = 41 which is the solution

Sorry for the oversight !!

Sundar R - 6 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...