Solution to: Colorful Chameleons

Name the number of blue chameleons b, the number of green chameleons g, and the number of purple chameleons p.

With each encounter between two differently colored chameleons, the number of those two color variants decreases by 1, and the number of the other color variant increases by 2. As a result, the difference in the numbers of the first two color variants remains the same, while the differences in the numbers of the first two color variants and the third color variant increase by 3.

For example, if in the initial situation a blue and a green chameleon meet, both change their color to purple. The new numbers of chameleons then become b - 1, g - 1, and p + 2.

The table below provides an overview of all possible encounters between two differently colored chameleons, including the resulting difference in number between the color variants.

EncounterResulting number per color variantResulting difference in number
BlueGreenPurpleGreen - BluePurple - GreenPurple - Blue
Blue and Greenb - 1g - 1p + 2g - bp - g + 3p - b + 3
Green and Purpleb + 2g - 1p - 1g - b - 3p - gp - b - 3
Blue and Purpleb - 1g + 2p - 1g - b + 3p - g - 3p - b

In the given initial situation, there are 13 blue, 15 green, and 17 purple chameleons. We can note the following:

Now, if we look at the resulting difference in number after an encounter, as shown in the table above, we see that during the encounter between two differently colored chameleons, nothing changes in the mutual differences:

In the situation where all chameleons have the same color, the difference between any two color variants is a multiple of three (the color variants that no longer occur differ from each other by 0 in number and both differ by 45 in number from the remaining color variant). However, based on the given initial situation, that scenario can never be reached.

Conclusion: It is not possible for all 45 chameleons to be the same color at any given time.


Back to the puzzle