A Colorful Problem

At the zoo, there is an exhibition filled with a rare breed of chameleons. This breed consists of red, blue, and green variants. In that exhibition, 15 of the chameleons are red, 13 are blue, and 17 are green. If two chameleons of two different colors meet, they will both turn into the third color.

  • If a red chameleon meets a green chameleon, both chameleons will turn blue.
  • If a blue chameleon meets a green chameleon, both chameleons will turn red.
  • If a red chameleon meets a blue chameleon, both chameleons will turn green.

Is it possible for all of the chameleons to become a single color?

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.

2 solutions

Let R n , B n , G n R_{n},B_{n},G_{n} be the respective number of red, blue and green chameleons after n n chameleon "meetings". If two chameleons of the same color meet then R n + 1 = R n , B n + 1 = B n R_{n+1} = R_{n}, B_{n+1} = B_{n} and G n + 1 = G n G_{n+1} = G_{n} . If two chameleons of different colors meet, then the values change as follows:

(i) red meets blue: R n + 1 = R n 1 , B n + 1 = B n 1 , G n + 1 = G n + 2 R_{n+1} = R_{n} - 1, B_{n+1} = B_{n} -1, G_{n+1} = G_{n} + 2

(ii) red meets green: R n + 1 = R n 1 , B n + 1 = B n + 2 , G n + 1 = G n 1 R_{n+1} = R_{n} - 1, B_{n+1} = B_{n} + 2, G_{n+1} = G_{n} - 1

(iii) blue meets green: R n + 1 = R n + 2 , B n + 1 = B n 1 , G n + 1 = G n 1 R_{n+1} = R_{n} + 2, B_{n+1} = B_{n} - 1, G_{n+1} = G_{n} - 1

Now note that in each of these cases,

R n + 1 B n + 1 R n B n ( m o d 3 ) R_{n+1} - B_{n+1} \equiv R_{n} - B_{n} \pmod{3}

R n + 1 G n + 1 R n G n ( m o d 3 ) R_{n+1} - G_{n+1} \equiv R_{n} - G_{n} \pmod{3}

B n + 1 G n + 1 B n G n ( m o d 3 ) B_{n+1} - G_{n+1} \equiv B_{n} - G_{n} \pmod{3}

In other words, the pairwise modulo 3 differences between the numbers of chameleons of different colors is invariant, and in particular are the same as they are at the start of the process. So with R 0 = 15 , B 0 = 13 , G 0 = 17 R_{0} = 15, B_{0} = 13, G_{0} = 17 , we have that for any n n , R n B n 2 ( m o d 3 ) , R n G n 1 ( m o d 3 ) R_{n} - B_{n} \equiv 2 \pmod{3}, R_{n} - G_{n} \equiv 1 \pmod{3} and B n G n 2 ( m o d 3 ) B_{n} - G_{n} \equiv 2 \pmod{3} .

But if at some point all the chameleons were the same color, say R = 45 R = 45 , then B G = 0 0 0 ( m o d 3 ) B - G = 0 - 0 \equiv 0 \pmod{3} , which is impossible since we must always have B n G n 2 ( m o d 3 ) B_{n} - G_{n} \equiv 2 \pmod{3} . Similarly for B = 45 B = 45 and G = 45 G = 45 . Thus it is impossible for all the chameleons to simultaneously be the same color.

Let's assume only red and blue ones meet: after 13 meetings the blue ones are gone and there are 2 red left and 43 green. Then the next meeting of 2 different coloured chameleons will give a blue chameleon back. Hence: it's not possible to get 45 the same coloured chameleons.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...