A number with one hundred digits is awkward to divide directly, but its remainder may follow a short pattern. This original SASMO-style learning exercise uses a number made entirely of ones and a divisor of seven. It does not reproduce an official paper or predict a future contest question.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-REPUNIT-REMAINDER-SIX-CYCLE-1118 and tell us your school year and question.
Describe the number precisely
Let R_n be the positive integer formed from n copies of the digit 1, so R_1=1, R_2=11 and R_3=111. We want the remainder when R_100 is divided by 7. Appending one digit 1 multiplies the current number by 10 and adds 1: R_(n+1)=10 R_n+1. The same update can be applied to its remainder, because multiples of 7 do not affect the next remainder.
Compute only small remainders
Starting from R_1, the remainders are 1,4,6,5,2,0. For example, a current remainder 6 updates to 61, whose remainder is 5. After remainder 0, the next update gives 1 again. Since the next remainder is determined entirely by the current one, the six-step sequence repeats from that point. Keep the positions alongside the values; zero is the remainder at position 6, not at position 1.
Locate the hundredth position
Divide 100 by 6 to get 16 complete blocks and 4 extra positions. Therefore R_100 has the same remainder as the fourth member of the cycle, which is 5. Checking 1111 directly gives 1111=7 times 158+5. The target answer follows from the cycle position, not from assuming that a long string of ones must be close to a multiple of seven.
Why a repeated pattern needs justification
Seeing two matching remainders is useful because the recurrence is deterministic: identical current remainders generate identical future remainders. Merely noticing similar last digits in a few large numbers would not establish this. Here we have an explicit rule for the next state, so returning to remainder 1 proves a repeat of the entire following chain. All calculations stay between small integers.
Try a different length before changing the divisor
As original follow-up checks, R_12 has remainder 0 and R_13 has remainder 1. If the divisor changes, rebuild the recurrence table; the cycle length need not remain six. Writing a short remainder list is often safer than applying a formula without checking whether its denominator can be cancelled modulo the divisor. Explain both how the cycle starts and which index the question asks for.
Continue reading: SASMO Counting Practice: Subtract Paths Through a Point Without Losing Their Two Stages.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-REPUNIT-REMAINDER-SIX-CYCLE-1118. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
