SASMO Number Reasoning: Find the Remainder of a Hundred Ones Without Writing Them

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.

Scan to contact Hanlin on WeChat. Send SASMO-REPUNIT-REMAINDER-SIX-CYCLE-1118.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

SASMO Logic Practice: Minimise Deletions by Reading Runs of Equal Letters

An arrangement problem can hide a useful structure in repeated blocks. To minimise deletions, it helps to know both a construction that works and a bound showing that no better construction is possible. This original recreational exercise concerns a line of letters, not an official SASMO task.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-LETTER-RUNS-1117 and tell us your school year and question.

Fix the permitted operation

Start with the eight-letter string AAABBAAC. You may delete letters, but may not reorder the remaining ones. The final string must have different letters at every pair of neighbouring positions. Repeated letters are allowed when separated, so ABA is acceptable. The arrangement is a line, and the first and last letters are not considered neighbours.

Split the original string into runs

The maximal consecutive runs are AAA, BB, AA and C, with lengths 3, 2, 2 and 1. A run groups equal letters that are already next to one another. The two A runs are distinct because B letters separate them. Counting only distinct letter types would discard that positional information and would suggest an unnecessarily short final string.

Give a valid construction

Keep one letter from each run and delete the others. The result is ABAC, which has no equal neighbouring letters. The deletion count is (3-1) + (2-1) + (2-1) + (1-1) = 4. This establishes that four deletions are sufficient. By itself, however, a working construction does not prove that three deletions could never succeed.

Prove the lower bound

Within any original run, keeping two letters would leave those equal letters adjacent in the retained subsequence: there were no different letters between them to begin with. At most one letter from each run can therefore remain. There are four runs, so at most four of the eight original letters can be kept. At least four deletions are necessary, matching the construction.

Check how changing the rules changes the problem

Deleting a whole middle run can bring equal runs together, which does not improve the bound here. Allowing reordering would create a different optimisation problem, while treating the string as circular would add an endpoint condition. In preparation notes, state the operation and adjacency rule first, then separate a feasible result from the argument establishing optimality. The matching upper and lower bounds are what make the minimum convincing.

Continue reading: SASMO Counting Practice: Three Overlapping Clubs Need the Triple Intersection Added Back.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-LETTER-RUNS-1117. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send SASMO-LETTER-RUNS-1117.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service