I am thinking of a 3-digit number A B C .
I give you the following sum:
+ 1 A B B C C 2 C A C A B 2 B C A B A 3
What is A B C ?
Note : The digits A , B , and C are not necessarily distinct.
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.
You got the solution but swapped the digits in the final answer of your post!
Log in to reply
You are right...
Whoops, thanks for pointing it out.
If you got 4 bad in at start with memory you will know in 2 tests how to get device to turn on. If 3 bad in an 3 good batteries in at start and you don't takeout 2 bad batteries in first move.(if u did it would turn on.) So know takeout another pair of batteries and leave first pair you took out in the machine. If it doesn't turn on then leave first pair you took out in an take out another pair from device an place in original pair that wasn't in machine 4 batteries those first two you took out an the two u originally left out. Don't forget there must between two or three good batteries between the 4 left in and the 4 you took out. Because you have now eliminated chance of taking out two bad batteries at once or the device would have turned on. So now turn to the batteries you have taken out of device 4 batteries. Pick one battery lets call this battery (u) of your two pairs you have left out of case an pair with a battery from other unique pair. If don't work pair with other battery from pair if still doesnt work. You know that battery u is bad so the other battery must have been good. So pair this battery with one of the other two batteries an when the device turns on you know you have two good batteries. And have identified two bad batteries. Thats 6 cases. Procedural explanation. To go with the math I may have missed a little something
The 5 numbers in the sum plus A B C must sum to 2 2 2 ⋅ ( A + B + C ) .
Let A + B + C = x then 2 2 2 x − 1 2 2 3 = A B C and make a table:
x | 222x-1223 | Digit sum |
5 | -113 | - |
6 | 109 | 10 |
7 | 331 | 7 |
8 | 553 | 13 |
9 | 775 | 19 |
10 | 997 | 25 |
11 | 1219 | - |
As we can see the only sum that work is 7 where A B C = 3 3 1
"The 5 numbers in the sum plus ANC must sum to 222.(A+B+C)". Why?
Log in to reply
If you write every combination of the letters ABC then each ends up in the units place twice, the tens place twice, and the hundreds place twice.
ABC+ACB+BAC+BCA+CAB+CBA=100(2A+2B+2C)+10(2A+2B+2C)+(2A+2B+2C)=222(A+B+C).
add ABC on both side
ACB + BAC + BCA + CAB + CBA + ABC = 1223 + ABC
let:
ACB=100A + 10C + B
BAC=100B + 10 A + C (continue this to other 4)
add, you will get
222A + 222B + 222C = 1223 + ABC
222(A+B+C) = 1223 + ABC
Thats not clear to me either. Why? Yes, I know this is redundent.
I solved it in the exact same way.
Just solve the following three Natural Eqs:
(1) 2A+2B+C=13,
(2) 2A+B+2C=11,
(3) A+2B+2C=11.
Get A=3, B=3 and C=1,
Answer=331
Brilliant sir ji. Simple solution, with a minor assumption.
Can you explain why you wrote 23,11,11
Why not (1) = 23, (2) = 10 and (3) = 11 or any other solution? We should check them all to find any solution giving A,B and C natural numbers, shouldn't we?
Note that the sum of the six numbers a b c , a c b , b a c , b c a , c a b and c b a is 2 2 2 ( a + b + c ) . This means that 2 2 2 ( a + b + c ) = 1 2 2 3 + a b c .
Since 1 0 0 ≤ a b c ≤ 9 9 9 , we have 1 3 2 3 ≤ 2 2 2 ( a + b + c ) ≤ 2 2 2 2 , which means that 6 ≤ a + b + c ≤ 1 0 .
Now note that 2 2 2 = 2 × 3 × 3 7 , 1 2 2 3 ≅ 2 ( m o d 3 ) and 1 2 2 3 ≅ 2 ( m o d 3 7 ) . So from the equation 2 2 2 ( a + b + c ) = 1 2 2 3 + a b c , we have a b c ≅ − 2 ( m o d 3 ) and a b c ≅ − 2 ( m o d 3 7 ) . This means that a b c ≅ − 2 ( m o d 3 × 3 7 ) ≅ − 2 ( m o d 1 1 1 ) ≅ 1 0 9 ( m o d 1 1 1 )
It is also clear that a b c is an odd number, so a b c = 1 0 9 + 2 k × 1 1 1 for some integer k . Now a b c ∈ { 1 0 9 , 3 3 1 , 5 5 3 , 7 7 5 , 9 9 7 } .
As 6 ≤ a + b + c ≤ 1 0 , the only possible answer is a b c = 3 3 1 .
Why do you say that the sum of abc, acb, bac, bca, cab and cab = 222? Would you explain that?
Log in to reply
Across all permutations of the digits of a b c , each x ∈ { a , b , c } appears in each of the hundreds/tens/units columns twice. When it appears in the hundreds column, it contributes 1 0 0 x to the sum, similarly 1 0 x and x for tens and units, so its total contribution is 2 ⋅ ( 1 0 0 + 1 0 + 1 ) x .
Log in to reply
Thanks for answering, I don't get it at all, probably because I'm not into such level haha.
Log in to reply
@Josue Pimentel – Oh, sorry! I tried to be succinct but it might have obscured the point... If you think that the number a b c represents a lots of 100, b lots of 10 and c lots of 1, then it can be written as 1 0 0 a + 1 0 b + c . Do the same for all the other combinations a c b , b a c , b c a , c a b , c b a and you get 1 0 0 a + 1 0 c + b , 1 0 0 b + 1 0 a + c , 1 0 0 b + 1 0 c + a , 1 0 0 c + 1 0 a + b , 1 0 0 c + 1 0 b + a . If you add those up you find that the result is 2 2 2 ( a + b + c ) .
Log in to reply
@Chris Pettitt – Oh, now I got it! Wow haha, good explanation, thanks you so much!
We note that 1 2 2 A + 2 1 2 B + 2 2 1 C = 1 2 2 3 . This means that C is odd. Since 1 2 2 A + 2 1 2 B ≥ 3 3 4 ⟹ 2 2 1 C ≤ 8 8 9 , implying that C = 1 or C = 3 .
When C = 1 , 1 2 2 A + 2 1 2 B = 1 2 2 3 − 2 2 1 = 1 0 0 2 , then 6 1 A + 1 0 6 B = 5 0 1 implying that A is odd. It is found that A = B = 3 satisfy the equation. There is no solution when C = 3 . Therefore A B C = 3 3 1 .
We are given that a c b + b a c + b c a + c a b + c b a = 1 2 2 3 ⟹ 1 2 2 a + 2 2 1 b + 2 1 2 c = 1 2 2 3 Rearranging we can obtain the following 2 ( 6 1 a + 1 0 6 b ) + 2 2 1 c = 1 2 2 3 Since 1223 is an odd number thus 2 2 1 c must be an odd number where 1 ≤ c < 5 . If c = 5 then 1 2 2 3 − 2 2 1 c < 6 1 a + 1 0 6 b < 6 1 . Thus we don't considered c = 5 .
case 1 if c = 3 then 6 1 a + 1 0 6 b = 2 8 0 . As 280 is even 6 1 a must yield a even number, having possible value a = 2 (only). For a ≥ 2 { 1 0 6 b = 2 8 0 − 6 1 a = 1 5 8 < 1 0 6 b , a = 2 , b > 1 1 0 6 b = 2 8 0 − 6 1 a = 3 6 < 1 0 6 , a > 2 Therefore, for c = 3 a , b are not integers.
Case 2 if c = 1 then 6 1 a + 1 0 6 b = 5 0 1 implying a to be an odd number and b ≤ 4 . 1 0 6 b = ( 2 × 5 3 ) b = 5 0 1 − 6 1 a ⟹ b = 2 ⋅ 5 3 5 0 1 − 6 1 a ≤ 4 Giving us 6 1 a ≤ 7 7 , 6 1 a = 1 8 3 , 6 1 a = 2 8 9 , 6 1 a = 3 9 5 . Out of these values only true value is 6 1 a = 1 8 3 ⟹ a = 3 and b = 3 .
Hence a b c = 3 3 1 .
In your first equation, you mistakenly wrote that there are 221b. It's actually 212b.
Please, correct your first equation to 122a+212b+221c=1223 to avoid confusion.
This solution won’t work if at least 1 digit is 0. But here’s how I did it.
Since all three digits are integers, looking at the rightmost column, we realise that 2A + 2B + C cannot equal to 3, and hence must equal to 13. Following this same train of reasoning, both 2A + B + 2C as well as A + 2B + 2C must equal to 11. By adding them all together, 5 ( A + B + C ) = 35, and hence A + B + C = 7. Substituting this into the previous equations, A + B = 6, A + C = 4 and B + C = 4. This means A = B, therefore A = 3, B = 3 and C = 1. Hence, ABC = 331.
Of course, if any of the digits were 0, it would complicate matters slightly.
So let’s say a digit might be 0. It can only either be B, C or both, since A is the first digit. Looking back at the rightmost column, 2A + 2B + C = 3 or 13. And because both 3 and 13 are odd numbers only B can be 0, as any other alternative will end up with an even number. From there, we realise we can’t get integer solutions for both A and C, so obviously B can’t equal to 0, and none of the digits are 0.
You've assumed initially that the numbers in the ones column equal 13. How could you be certain that they didn't equal 23?
Log in to reply
Because of the left column, I guess. That sum must be 11. That was how I got 13 for the right column (and not 23, 33, 43....)
100(A+2B+2C)+10(2A+B+2C)+(2A+2B+C)=1223.
122A+212B+221C=1223
Hence C=1 (C is not 3).
This implies that A=3 and B=3.
Desired answer is 331.
How come c=1 but not 3 just like that
It is first of all worth noting that A , B & C cannot all equal each other (1223 is not a multiple of 5 and if A=B=C then you would effectively be calculating 5 ∗ A A A ). Also, the main thing to note is that each column of the addition (relating to a power of 10) will produce a sum, related to the answer.
We now move on to analyse the problem in detail, column by column. In the left hand column, since we know that A, B, C > 0 (the first digit of any 3 digit number must be > 0) and can determine that A + 2 B + 2 C < 1 2 ( A + 2 B + 2 C = 1 2 fails when the 3 digit rule is applied to the middle column), therefore A < 8 & B, C < 5 or, in the case that B=C, B, C < 3. In addition, as the left and right hand columns differ by A-C, the right hand column gives 2 A + 2 B + C < 1 2 + A − C . Now, the fact that A < 8 tells us that the sum is not 23 but applying the 3 digit rule, it cannot be 3 either, so the sum of the right hand column must be 13. Therefore 2 A + 2 B + C = 1 3 -> 2 ( A + B ) = 1 3 − C . As 2(A+B) is even, which implies that 13-C must also be even, C must be odd.
The final column we need to consider is the middle column. Using what we already know, the sum of this column is 2 A + B + 2 C = 1 3 − B + C and the last digit of the sum is a 1. Recalling that B < 5, this sum is < 21 so it must be 11 (we have already established that it cannot be 1 via the 3 digit rule). This also means that the sum of the left hand column is 11. We apply the same method as before to find that B must be odd. We can now solve via simultaneous equations to find B-C (note that we must choose these two equations such that they eliminate A);
( 1 ) 2 A + 2 B + C = 1 3 ,
( 2 ) 2 A + B + 2 C = 1 1 ,
( 1 ) − ( 2 ) -> B − C = 2 -> B = C + 2
But we know that B, C < 5 and that they are both odd. Therefore, B = 3 and C = 1 . Substituting into equation ( 2 ) yields 2 A + 5 = 1 1 -> A = 3 . Thus, the number A B C is 3 3 1 .
The original equation is equivalent to 1 2 2 ∗ A + 2 1 2 ∗ B + 2 2 1 ∗ C = 1 2 2 3 . We also know A ≥ 1 . And looking at the unit's place, since 2 ∗ A + 2 ∗ B + C is a number ending in 3 , C must be odd. It is immediate that C must be 1 or 3 .
At this point it is faster to test possibilities than to do more algebra. The solution is quickly found: A = B = 3 , C = 1 .
Answer 331. My thoughts:
SUM of right column MUST be 13 (not 23, 33, 43.... because SUM of left column MUST be 12 or 11). So, the only difference between left and right column is one letter C and one letter A, and the difference of its SUM is 2 or 1, therefore, that is the difference between C and A digits. Then, we know that A=B by analysing left and center column (or making the SUM of each column) Hence, as we also know that in order to get an even number in right column SUM, either 3 digits are even, or only one them is, so by replacing 1....2....3, we got the answer 331
First, rewrite the sum as
1 0 0 ( A + 2 B + 2 C ) + 1 0 ( 2 A + B + 2 C ) + 2 A + 2 B + C = 1 2 2 A + 2 1 2 B + 2 2 1 C = 1 2 2 3
Next, note that C must be odd, as 1223 is odd and 122 and 212 are even.
For C = 5 , 5 × 2 2 1 = 1 1 0 5 but 1 1 0 5 + 1 2 2 > 1 2 2 3 so C < 5
For C = 3 , 3 × 2 2 1 = 6 6 3 and 1 2 2 A + 2 1 2 B = 5 6 0 which means A + B = 5 , 1 0 , 1 5 . . . . as both of their last digits are 2. But 1 2 2 × 5 = 6 1 0 > 5 6 0 so C = 1
Hence C = 1 and 1 2 2 A + 2 1 2 B = 1 0 0 2 meaning A + B = 6 , 1 1 , 1 6 . . . . because both of their last digits are 2. But 1 1 × 1 2 2 = 1 3 4 2 > 1 0 0 2 so A + B = 6
The solution is now easily found by either testing values or substituting A = 6 − B into 1 2 2 A + 2 1 2 B = 1 0 0 2 to give A B C = 3 3 1
We have that 1 0 0 A + 1 0 C + C + 1 0 0 B + 1 0 A + C + ⋯ = 1 2 2 A + 2 1 2 B + 2 2 1 C = 1 2 2 3 . Testing for a few values of A , B , and C gives the answer of 3 3 1 .
Simple python program does this:
1 2 3 4 5 6 |
|
Very uninspiring.
By looking at the 1st column (B+C+A+B+A =13) since 3rd column (A+2B+2C <= 12), by solving the equation (A+2B+2C =11) 1st column,(2A+B+2C = 11) 2nd column,(2A+2B+C = 13)3rd column
Observe that in total we have 5 A's, 5 B's and 5 C's. We make use of the 9 test, so working mod 9: 5(A+B+C) ≡ 1223 ≡ 8. This implies that A + B + C ≡ 7 ( m o d 9 ) Or in regular aritmethic: A+B+C is either 7,16 or 25. The first column tells us that A+2B+2C cannot exceed 12, so, even with maximum A=9, 2A+2B+2C cannot exceed 21 and hence A+B+C cannot exceed 10. So now we know: A + B + C = 7
The last column now tells us that 14-C=10k+3. => C=1 and k=1, which is carried to the middle column.
The middle column now tells us that 15-B=10m+2 =>B=3 and m=1, which is carried to the first column.
The first column now tells us that 15-A=12 =>A=3 A B C = 3 3 1
case 1: Let 2A+ 2B + C=3 since ABC is 3 digit number thenA not equal to 0. So only one possible solution A=1, B=0,C=1. (not satisfy the condition) case 2: Let 2A+ 2B + C=13 then 100* ( A+ 2B +2 C) + 10* (2A+ B + 2C) +(2A+ 2B + C) = 100 * 11 + 10 * 11+ 13(=1223) by comparing both the side A+ 2B +2 C =11 --------eqn(1) 2A+ B + 2C =11 --------eqn(2) 2A+ 2B + C= 13 --------eqn(3) eqn(1) - eqn(2) -A+ B = 0 A=B --------eqn(4) 2*eqn(3) - eqn(2) 2A + 3B = 15 ( since A = B ) 2A + 3A = 15 5A=15 A=3 and B=3 from eqn(4) put A and B value in eqn (3) C=1 therefore ABC is 331
Since A is non zero, from the units column we see that either
B = 0 and 2A +C = 3 or 2A + 2B + C = 13
From the tens column we see that the former of these is impossible and we have 2A + 2B + C = 13
Further, 2A + B + 2C + 1 = 2 (impossible) or 2A + B + 2C + 1 = 12
From the hundreds column we have
A + 2B + 2C +1 = 12
So:we have a set of simultaneous equations:
2A + 2B + C = 13
2A + B + 2C = 11
A + 2B + 2C = 11
Solving: ABC = 331
Just looking at the last right column ( B+C+A+B+A=2A+2B+C=3) c has to be an odd number because whatever A and B might be, 2A and 2B becomes even but sum 3 is odd. Thus C has to be odd. C can either be 1 or 3 but not 5,7,9 because the maximum C can be is 3 when A and B are 0. If C=3 then 2A+2B has to be 0 or multiples of 10. The first left column shows that A and B can't be 0 or multiples of 10 ( A+B+B+3+3+x=12). Thus C = 1. If C=1 the 2A+2B has to be 12. Solve this you'll get A=B=3. Thus 331.
We have 1 2 2 A + 2 1 2 B + 2 2 1 C = 1 2 2 3 . The fact we are dealing with digits (which means 0 ≤ A , B , C ≤ 9 ) makes modular arithmetic very useful here.
2 A + 2 B − 4 C ≡ 8 m o d 1 5 ⟹ A + B ≡ 4 + 2 C m o d 1 5
5 A + 4 B ≡ 1 m o d 1 3 ⟹ A ≡ 1 − 4 ( A + B ) m o d 1 3
(the choices of 1 5 and 1 3 may look arbitrary, but come from testing modulo 3 and 5 - always useful to try small primes - and noting that 1 3 ∣ 2 2 1 .) If we know C , we can work out some information about A + B and then about A and B individually. By considering the units column of the sum, we can see that C must be odd; by considering the 1 0 0 s column, we have A + 2 B + 2 C ≤ 1 2 . Putting these together, C must be 1 , 3 or 5 .
Case C = 1 :
A + B ≡ 4 + 2 C = 6 m o d 1 5 ; since A , B are digits, this in fact means A + B = 6
A ≡ 1 − 4 ⋅ 6 ≡ 3 m o d 1 3 ; so A B C = 3 3 1
Case C = 3 :
A + B ≡ 1 0 m o d 1 5 ; so A + B = 1 0
A ≡ 0 m o d 1 3 ; so A = 0 ; but then B = 1 0 , contradiction
Case C = 5 :
A + B ≡ 1 4 m o d 1 5 ; so A + B = 1 4
A ≡ 1 0 m o d 1 3 ; no solution with 0 ≤ A ≤ 9 ; contradiction
So the answer is 3 3 1
2(A+B) + C = 13 2(A+C) + B = 11 2(B+C) + A = 11
Solving this system gives: A=3 B=3 C=1
a
,
b
,
c
1
2
2
a
+
2
1
2
b
+
2
2
1
c
1
2
2
(
a
−
1
)
+
2
1
2
(
b
−
1
)
+
2
2
1
(
c
−
1
)
∈
Z
+
=
1
2
2
3
=
6
6
8
So
c
−
1
must be even.
c
−
1
=
2
⟹
1
2
2
(
a
−
1
)
+
2
1
2
(
b
−
1
)
=
2
2
6
,
which isn't possible, so
c
−
1
=
0
.
1
2
2
(
a
−
1
)
+
2
1
2
(
b
−
1
)
=
6
6
8
which has a solution
(
a
−
1
,
b
−
1
)
=
(
2
,
2
)
.
Therefore,
a
b
c
=
3
3
1
.
Problem Loading...
Note Loading...
Set Loading...
From the left column, we know that A + B + B + C + C ≤ 1 2 .
By swapping one of these numbers, the most we can change the sum by is 9 , as they are single-digit numbers.
Therefore, the right column cannot carry 2 , as 1 2 + 9 < 2 3 , so it must sum to 1 3 , and carry 1 . (It also can't sum to 3 , otherwise there would be no carry in the left column.)
From this, we can see that the sums of the three individual columns are 1 1 , 1 1 & 1 3 respectively.
As the sum of the left and centre column are equal, we know that A = B , and by comparing the right and centre columns, we can see that C = B − 2 . Now we can find the values by substituting B in for A and C : B + B + B + ( B 5 B B A = B C = B − 2 ) + ( B − 2 ) = 1 1 − 4 = 1 1 = 3 = 3 − 2 = 1 A B C = 3 3 1