- Practice
- About 13 min
- 5 practice questions
Rotation and shifting patterns
Predict the output of machines that move the first number to the end each step and recognise when the pattern repeats.
If something looks wrong, please tell us.
Some machines rotate the line: the first item moves to the end, and the rest slide left. These machines repeat after as many steps as there are items, so you can use remainders to skip ahead.
Worked example 1
Input: 9 4 7 2. Step I: 4 7 2 9. Step II: 7 2 9 4. Step III: 2 9 4 7. Step IV: 9 4 7 2, which is the input again. The pattern repeats every 4 steps.
Worked example 2
Input: 8 3 6 1 5. Step I: 3 6 1 5 8. Step II: 6 1 5 8 3. Step III: 1 5 8 3 6. After 3 steps the first three numbers (8, 3, 6) have gone to the end in order.
A rotation machine repeats after n steps for n items. Skip ahead using the remainder.
Key takeaways: a rotation moves the first item to the end, and with n items the pattern repeats every n steps.
Check your understanding
-
1. Machine: at each step the first item moves to the end and the rest slide left. Input: 6 2 9 4 1. What is Step II?
- 2 9 4 1 6
- 9 4 1 6 2
- 4 1 6 2 9
- 1 6 2 9 4
Show answer
Answer: B. Step I: 2 9 4 1 6. Step II: 9 4 1 6 2.
-
2. Machine: at each step the first item moves to the end and the rest slide left. Input: 3 5 7 9. What is Step X (step 10)?
- 5 7 9 3
- 9 3 5 7
- 7 9 3 5
- 3 5 7 9
Show answer
Answer: C. Four items repeat every 4 steps. 10 leaves a remainder of 2 when divided by 4, so Step X equals Step II: 7 9 3 5.
-
3. Machine: at each step the first item moves to the end and the rest slide left. Input: 1 2 3 4 5 6 7. What is Step XV (step 15)?
- 1 2 3 4 5 6 7
- 3 4 5 6 7 1 2
- 7 1 2 3 4 5 6
- 2 3 4 5 6 7 1
Show answer
Answer: D. Seven items repeat every 7 steps. 15 leaves a remainder of 1 when divided by 7, so Step XV equals Step I: 2 3 4 5 6 7 1.
-
4. Machine: at each step the first item moves to the end and the rest slide left. Input: 12 4 10 7 2. What is Step III?
- 7 2 12 4 10
- 10 7 2 12 4
- 4 10 7 2 12
- 2 12 4 10 7
Show answer
Answer: A. After 3 steps the first three numbers (12, 4, 10) have gone to the end in order: 7 2 12 4 10.
-
5. Machine: at each step the first item moves to the end and the rest slide left. Four items are rotated. Which arrangement is Step VIII (step 8)?
- The same as Step I
- The same as the input
- The same as Step II
- The same as Step III
Show answer
Answer: B. Four items return to the input every 4 steps, and 8 is a multiple of 4, so Step VIII is the input again.
Sign in to keep track of the lessons you finish.