+ R R R G G G G G B B B G
Solve for G G G .
Note: B , G , R are different non-zero digits.
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.
@Mahdi Raza , it's different non-zero digits, therefore 0 0 0 wouldn't work as it violates both conditions.
Oops! Sorry for bothering you, @Mahdi Raza .
There are many ways to do this problem.
One way is to simply iterate through values of B . There are only ten possibilities, and each forces a unique value of G ≡ 3 B m o d 1 0 . One can then test to see whether this value of G creates a contradiction in the tens' column.
For all of the following, I try each value of B and let G = 3 B m o d 1 0 .
Starting with B = 1 , G = 3 ? This choice fails in the tens column because 3 G = 9 ≡ 3 m o d 1 0
Next, B = 2 , G = 6 ? Fails because 3 G = 1 8 ≡ 6 m o d 1 0
And B = 3 , G = 9 ? Fails because 3 G = 2 7 ≡ 9 m o d 1 0
Next, B = 4 , G = 6 ? Note that we'll start to need to carry the excess from the ones' column to the sum in the tens column. In this case, it fails because 3 G + 1 = 1 9 ≡ 6 m o d 1 0
B = 5 , G = 5 ? Fails because B = G , which isn't allowed.
B = 6 , G = 8 ? Fails because 3 G + 1 = 2 5 ≡ 8 m o d 1 0
B = 7 , G = 1 ? Fails because 3 G + 2 = 5 ≡ 1 m o d 1 0
B = 8 , G = 4 ? Then 3 G + 2 = 2 4 ≡ 4 m o d 1 0 . We then consider the hundreds column to find R : 3 R + 1 = 4 means R = 1 .
So R = 1 , G = 4 , B = 8 is a solution.
Just for sake of completeness, if B = 9 , 3 B = 2 7 , so G = 7 . But 3 G + 2 = 2 3 ≡ 7 m o d 1 0 .
So ( R , G , B ) = ( 1 , 4 , 8 ) is the only solution.
Nice use of modulo, @Richard Desper !
Since R ≥ 1 , therefore G ≥ 3 .
R = 1 , G = 4 , B = 8 , G G G = 4 4 4
In your second solution you have G = 9 and G = 8 .
@Alak Bhattacharya , you have G = 9 and G = 8 . How's that possible?
@Alak Bhattacharya : + 2 2 2 8 9 9 9 8 6 6 6 8
+ 1 1 1 4 4 4 4 4 8 8 8 4
Where B = 8 , G = 4 , R = 1
Problem Loading...
Note Loading...
Set Loading...
*Can be (and should be solved using number theory), but i tried to hard code it, since i am learning to code :) *
000 does not constitute distinct non-zero digits. Thus answer will be G G G = 4 4 4