Position 1 starts at offset 0. Using (position − 1) before taking the remainder handles exact multiples and first positions with the same rule.
Read the boundary between two cycles
Make a bracelet by repeating red, blue, blue. Positions 1, 2 and 3 finish the first cycle. The two blue beads occupy different slots even though they look the same. Choosing a slot by counting distinct colors would give a cycle of two and the wrong answer.
| Position | Complete cycles before this bead | Slot in cycle | Color |
|---|---|---|---|
| 98 | 32 | 2 | Blue |
| 99 | 32 | 3 | Blue |
| 100 | 33 | 1 | Red |
| 101 | 33 | 2 | Blue |

Check whether a printed block can shrink
For the block A B A B, two copies of A B fill all four slots exactly. Using a period of two gives the same terms with smaller numbers. A B A is different: when that whole block loops, its boundary is A followed by A. Shortening it to A B would erase that boundary.
The repeating pattern calculator checks which smaller blocks tile your input exactly. Supply a block that the puzzle actually says repeats. A few observed terms alone cannot determine the continuation.
Try three positions before opening the answers
1. Bell, drum, clap, rest repeats. What is term 64?
Rest. The first 63 terms contain 15 full cycles plus three beats. Term 64 is the fourth beat.
2. The printed block is 2 2 7 2 2 7. What is term 31?
2. The shortest unit has three slots. The first 30 terms fill ten cycles, so term 31 returns to slot one.
3. A B A repeats. What is term 5?
B. Write two copies: A B A | A B A. Slot two of the second copy is position five.
For a fresh set of number and logic problems on your phone, explore Moocsoft’s Math Riddles.
Common questions
What does a remainder of zero mean?
Using (position − 1) modulo period, zero selects the first term. If you divide the original position instead, zero selects the last term.
Can the calculator predict an unknown sequence?
It assumes the complete block you supply repeats indefinitely. Several different rules can fit a short sample.
Published by Moocsoft, the studio behind Math Riddles. This guide uses AI assistance. How we prepare guides, label examples and handle corrections.