In a box there are white, red, and green balls. In one move, you may take
out two balls of different colors from the box and put into the box one ball
of the third color (there are always enough balls of any color to put into
the box). Is it possible to achieve that only one ball remains in the box,
if initially the box contains:
(A) \(10\) white, \(12\) red, and \(16\) green balls;
(B) \(10\) white, \(12\) red, and \(15\) green balls?
Kastē atrodas baltas, sarkanas un zaḷas lodītes. Ar vienu gājienu no
kastes var izņemt divas dažādu krāsu lodītes un ielikt kastē vienu
trešās krāsas lodīti (vienmēr pietiek jebkuras krāsas lodīšu,
ko ielikt kastē). Vai var panākt, ka kastē paliek tikai viena lodīte,
ja sākumā kastē atrodas:
(A) \(10\) baltas, \(12\) sarkanas un \(16\) zalas lodītes;
(B) \(10\) baltas, \(12\) sarkanas un \(15\) zaḷas lodītes?