WarriorWithin
Let S be a set of positive integers such that every element n of S satisfies the conditions
A. \(1000 \leq n \leq1200\)
B. every digit in n is odd
Then how many elements of S are divisible by 3?
A. 8
B. 9
C. 10
D. 11
E. 12
From conditions A and B, we know that n is a 4 digit integer where all the digits are odd.
For a number to be divisible by 3, the sum of digits has to be divisible by 3. Since all the digits are odd, the sum of 4 odd digits will always be even. Thus, for n to be divisible by 3 the sum of digits should be 6, 12, 18, .... and so on.
The highest sum of digits possible, given the range 1000 to 1200, is 20 (i.e. if n = 1199 -> 1+1+9+9 = 20).
Now that we know the highest sum of digits possible, we can easily infer that the highest sum of digits
divisible by 3 is 18. To summarize it all -
we need to find all the numbers in the range 1000 to 1200 where all the digits are odd and add up to get a sum of 6, 12 or 18.Also, note that we can only incorporate the digit '1' at the hundred's place because that is the only odd number between 0 and 2.
Thus, the numbers that we are looking for look like -
11_ _ .We need to look for odd numbers to fill up the tens and ones place so that the sum of all the digits is 6, 12 or 18.
OR IN OTHER WORDS
The sum of the odd numbers that are to be filled in the tens and ones place should be 4 (6-2), 10 (12-2) or 16 (18-2).CASE 1 - Sum of the odd tens and ones digits is 41 and 3 ( i.e. n = 11
13)
3 and 1 ( i.e. n = 11
31)
= 2 values
CASE 2 - Sum of the odd tens and ones digits is 101 and 9 ( i.e. n = 11
19)
9 and 1 ( i.e. n = 11
91)
3 and 7 ( i.e. n = 11
37)
7 and 3 ( i.e. n = 11
73)
5 and 5 ( i.e. n = 11
55)
= 5 values
CASE 3 - Sum of the odd tens and ones digits is 167 and 9 ( i.e. n = 11
79)
9 and 7 ( i.e. n = 11
97)
= 2 values
Total number of values of n = 2 + 5 + 2 = 9
Therefore,
B is correct.
It took me about 5 minutes to figure out the approach and solve this question.
Does anyone know any shorter approach?