Fog Creek Software
Discussion Board

chameleons -- solution

Consider all three differences between numbers of chameleons of different colours by mod. 3. All three of them remain the same each time the colour change happens: ((a-1) - (b-1))%3 = (a-b)%3, ((a-1)-(b+2))%3 = (a-b)%3.
Initially these differences by mod 3 are: 2, 2 and 1. If all the chameleons could get the same colour, the differences would become 0, 0 and 0. Impossible.

Dmitri Krylov
Monday, September 08, 2003

13 red chameleons
15 green chameleons
17 blue chameleons

If arranged in a triad so that they never meet,

Where 17 is the maximal number of chameleons in a phosphor.

Step back 100 yards

and they should appear as the equivalent of

#3CE1FF too bad its not websafe...

Bill Bingham
Friday, September 26, 2003

*  Recent Topics

*  Fog Creek Home