Skip to content / Đến nội dung
ThichHocToan.com

BEBRAS 2017 Grade 7-8 Round 2 Ext Question 14

BEBRAS · BEBRAS 2017 Grade 7-8 Round 2 Ext

Question 14

A programmable bee has four commands: move forward one square, turn left 90° without moving, turn right 90° without moving, and move backward one square.

Question illustration

GO executes the stored program. The example presses left, forward, right, forward, left, GO and shows its resulting movement.

Question illustration

The program is remembered, so pressing GO again repeats it from the current state. If the program brings the bee back to its starting square, what is the largest number of GO presses needed to return to that square with exactly its original direction?
  1. 2
  2. 4
  3. 8
  4. More than 10