How many ordered sets of digits ( a , b ) are there, such that the number 1 a b 2 is a multiple of 3?
Details and assumptions
Digits are integers from 0 to 9 inclusive.
The notation a b c denotes 1 0 0 a + 1 0 b + 1 c , as opposed to a × b × c . As an explicit example, for a = 2 , b = 3 , c = 4 , a b c = 2 3 4 and not 2 × 3 × 4 = 2 4 .
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.
In case 7, it should've been a + b = 18 instead of a + b = 6. Sorry about that.
Log in to reply
I've made the edit. In future, remember to check that your mathematical statements display correctly.
A l i n e a r e q u a t i o n : x 1 + x 2 + x 3 + x 4 + . . . . . . . + x k − 1 + x k = m h a v e C ( m − 1 , k − 1 ) s o l u t i o n s , w h e n i = 1 x i k > 0 a n d C ( m + k − 1 , k − 1 ) s o l u t i o n s , w h e n i = 1 x i k ≥ 0 b u t I j u s t f o r g o t t h e r e s t r i c t i o n 0 ≤ a , b ≤ 9 . S o , w h e n e v e r a + b = 1 2 , 1 5 , 1 8 w e c a n n o t j u s t f o l l o w t h e g e n e r a l c o n c l u s i o n s d i r e c t l y . T o f i n d t h e o r d e r e d s o l u t i o n o f a + b = 1 2 i s j u s t f i n d i n g t h e n u m b e r o f o r d e r e d s o l u t i o n s o f a + b = ( 1 8 − 1 2 ) = 6 . [ f o r a + b > 9 w e r e p l a c e a & b w i t h x 1 & x 2 : x 1 = 9 − a & x 2 = 9 − b ∴ f o r a + b > 9 t h e e q n . w i l l b e x 1 + x 2 = 1 8 − ( a + b ) ; x 1 , x 2 ≥ 0 ] N o w , n u m b e r o f o r d e r e d s o l u t i o n s o f a + b = 0 ≡ a + b = 1 8 a + b = 3 ≡ a + b = 1 5 a + b = 6 ≡ a + b = 1 2 [ a + b = 9 ≡ a + b = 9 ] ∗ ∗ N O T E : ( h e r e n u m b e r o f o r d e r e d s o l u t i o n s a r e e q u a l , n o t t h e s o l u t i o n s t h e m s e l v e s ) N o w y o u h a v e a l r e a d y d i s c u s s t h e c a s e s . ∴ a + b = 6 h a v e C ( 6 + 2 − 1 , 2 − 1 ) = 7 o r d e r e d s o l u t i o n s s o a + b = 1 2 h a v e 7 n o . o f o r d e r e d s o l u t i o n a n d s o o n . . .
The divisibility rule for 3 tells us that "A number is divisible by 3 if, and only if, its digits sum is divisible by 3".
This means that we want 1 + a + b + 2 ≡ 0 ( m o d 3 ) ⇔ a + b ≡ 0 ( m o d 3 ) .
This is only possible if
a ≡ b ≡ 0 ( m o d 3 ) or
( a , b ) ≡ ( 1 , 2 ) ( m o d 3 ) or
( a , b ) ≡ ( 2 , 1 ) ( m o d 3 ) .
The first case is possible when a , b are congruent to one of { 0 , 3 , 6 , 9 } , which is possible in 4 2 = 1 6 ways.
The last 2 cases are possible when a , b are congruent to one of 1 , 4 , 7 and 2 , 5 , 8 in some order, for a total of 2 ⋅ 3 2 = 1 8 ways.
So the total number of ways is 1 6 + 1 8 = 3 4 .
a+b=multiple of 3 (since to be divisible by 3 the sum of the digits of the no.(here 1+a+b+2) should be divisible by 3 )hence ab can be 03,06,09,12,15,18,........30,33,36,39,.........90,93,96,99. Hence we can observe that there are 3 possibilities in each set of ten except in the case of a = 3,6,9. however we overlook the fact that even ab=00 satisfies the required condition. hence in total there are 34 solutions
Solution: 34 Ordered Pairs
Key aspect of the solution:
For the number 1ab2 to be multiple of 3, the sum of the digits 1 + a + b + 2 must be divisible by 3.
We already have:
With the two extreme digits summing to 3, we are left with finding all the ordered pairs (a,b) that are multiples of 3.
It is sufficient to find the ordered pairs as per the condition below to form the full set of solutions:
The set of numbers that fit the ordered pair (a,b) being multiple of 3 is {0, 3, 6, 9, 12, 15, 18}.
Elaboration of ordered pairs for each element of the solution set:
1 ordered pair for element "0"; (0,0) is the only ordered pair that satisfies this element.
4 ordered pairs for element "3"; (0,3), (1,2), (2,1), (3,0) are the ordered pairs for this element.
7 ordered pairs for element "6"; (0,6), (1,5), (2,4), (3,3), (4,2), (5,1), (6,0) are the ordered pairs for this element.
10 ordered pairs for element "9"; (0,9), (1,8), (2,7), ..., (8,1), (9,0) are the ordered pairs for this element.
7 ordered pairs for element "12"; (3,9), (4,8), ..., (8,4), (9,3) are the ordered pairs for this element.
4 ordered pairs for element "15"; (6,9), (7,8), (8,7), (9,6) are the ordered pairs for this element.
1 ordered pair for the element "18"; (9,9) is the only ordered pair that satisfies this element.
We can proceed with casework on the sum of a + b , as the sum of the digits of any number divisible by 3 is divisible by 3. Thus, the sum a + b can equal 0, 3,6,9,12,15, or 18.
*if a+b=0 * Then there is 1 are legal ordered pair
if a+b=3 Then there are 4 are legal ordered pairs
*if a+b=6 * Then there are 7 are legal ordered pairs
*if a+b=9 * Then there are 1 0 are legal ordered pairs
*if a+b=12 * Then there are 7 are legal ordered pairs
*if a+b=15 * Then there are 4 are legal ordered pairs
*if a+b=18 * Then there is 1 are legal ordered pair
The total is thus 1 + 4 + 7 + 1 0 + 7 + 4 + 1 = 3 4 legal ordered pairs
Since 1 and 2 already add up to 3, the sum of a and b must be a multiple of 3. Here are the possibilities: 3: 12, 21, 03, 30
6: 33, 42, 24, 15, 51, 06, 60
9: 18, 81, 72, 27, 63, 36, 09, 90, 45, 54
12: 39, 93, 84, 48, 57, 75, 66
15: 96, 69, 78, 87
18: 99
0: 00
That is 34 of them in all. I know there would be an easier way.
Problem Loading...
Note Loading...
Set Loading...
1 a b 2 is divisible by 3 if the sum of its digits is divisible by 3, i.e 3 ∣ 3 + a + b . Since 3 ∣ 1 + 2 , in order for 3 to divide 3 + a + b , 3 must divide a + b . We also know that a and b are integers such that 0 ≤ a ≤ 9 and 0 ≤ b ≤ 9 which implies that 0 ≤ a + b ≤ 1 8 . Since 3 ∣ a + b , we have that a + b = 0 , 3 , 6 , 9 , 1 2 , 1 5 , 1 8 . We now consider each case separately and find the number of ordered pairs ( a , b ) .
Case 1: When a + b = 0 , we get 1 ordered pair; ( a , b ) = ( 0 , 0 ) .
Case 2: When a + b = 3 , we get 4 ordered pairs; ( a , b ) = ( 3 , 0 ) , ( 0 , 3 ) , ( 2 , 1 ) , ( 1 , 2 ) .
Case 3: When a + b = 6 , we get 7 ordered pairs; ( a , b ) = ( 6 , 0 ) , ( 0 , 6 ) , ( 1 , 5 ) , ( 5 , 1 ) , ( 4 , 2 ) , ( 2 , 4 ) , ( 3 , 3 ) .
Case 4: When a + b = 9 , we get 1 0 ordered pairs; ( a , b ) = ( 9 , 0 ) , ( 0 , 9 ) , ( 1 , 8 ) , ( 8 , 1 ) , ( 7 , 2 ) , ( 2 , 7 ) , ( 3 , 6 ) , ( 6 , 3 ) , ( 4 , 5 ) , ( 5 , 4 ) .
Case 5: When a + b = 1 2 , we get 7 ordered pairs; ( a , b ) = ( 3 , 9 ) , ( 9 , 3 ) , ( 4 , 8 ) , ( 8 , 4 ) , ( 5 , 7 ) , ( 7 , 5 ) , ( 6 , 6 ) .
Case 6: When a + b = 1 5 , we get 4 ordered pairs; ( a , b ) = ( 6 , 9 ) , ( 9 , 6 ) , ( 7 , 8 ) , ( 8 , 7 ) .
Case 7: When a + b = 1 8 , we get 1 ordered pairs; ( a , b ) = ( 9 , 9 ) .
Hence the number of ordered pairs ( a , b ) is 1 + 4 + 7 + 1 0 + 7 + 4 + 1 = 3 4 .