Question 8
A special instrument has red (R), blue (B), and green (G) keys and five notes numbered 1–5. Begin by pressing R, which plays note 1. Subsequent notes depend on the previous note and the key as shown.

R always plays note 1. A tune is happy if its last two notes are both 1. For example R-G-B-B-R produces 1-3-2-1-1, a happy tune; R-G-B-R-B produces 1-3-2-1-2, which is not happy. Which key sequence produces a happy tune?

R always plays note 1. A tune is happy if its last two notes are both 1. For example R-G-B-B-R produces 1-3-2-1-1, a happy tune; R-G-B-R-B produces 1-3-2-1-2, which is not happy. Which key sequence produces a happy tune?