Moving balls between boxes: the total stays fixed

Logical thinking · Suggested grades 5

Recognise that moving balls between two boxes preserves the total and use this invariant to reject an impossible target.

Download video
Open Chinese transcript
  1. 甲盒7球,乙盒5球,允许的操作只是把球从一盒移到另一盒。
  2. 开始总数是7加5等于12。先记住这个总量,不急着试移动。
  3. 每移动一球,一盒减1,另一盒加1;一减一加抵消,总数仍是12。
  4. 目标写成甲8球、乙6球,看起来只各多一点,但目标总数是14。
  5. 允许的操作无法创造新球,因此总数12不可能变成14。
  6. 所以目标不可达。判断前先找操作保持什么不变,再与目标比较。
Sources for this explanation

Logical thinking

Compare the starting total with the target total and note that every allowed move subtracts one from one box and adds one to the other.

Worked example

Box A has 7 balls and box B has 5. Balls may only be moved between the two boxes. Can the boxes end with 8 and 6 balls?

No. The starting total is 12, every transfer keeps it at 12, and the proposed target contains 14 balls.

Try one question

Can moving balls between boxes change total 15 to 16?