SASMO Inclusion-Exclusion: Three Divisibility Tests Can Share the Same Intersection

Among the integers from one through one hundred inclusive, how many are divisible by at least one of six, ten and fifteen? This original SASMO-style counting problem has three overlapping categories. The task is to count qualifying integers, not the number of divisibility statements they satisfy, and the upper endpoint is included.

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

Count each single divisibility category

The multiples of six number floor of one hundred divided by six, or sixteen. There are ten multiples of ten and six multiples of fifteen. Their sum is thirty-two, but it is only a count with multiplicity. An integer such as thirty satisfies all three tests and has already appeared three times in that sum.

Find intersections through least common multiples

Being divisible by both six and ten means being divisible by their least common multiple, thirty. The same least common multiple occurs for six and fifteen, and for ten and fifteen. Each pair intersection therefore consists of thirty, sixty and ninety. Each pair contributes three, even though all three pair intersections happen to contain the same integers.

Subtract all three pair counts

Subtracting three for each of the three pairs changes the provisional count to twenty-three. This is not yet the final answer. A number in all three categories, such as thirty, was counted three times initially and then subtracted three times, leaving zero contributions. A qualifying integer should contribute one, so another correction is needed.

Restore the common triple intersection once

The least common multiple of six, ten and fifteen is thirty, so the triple intersection again contains three integers. Adding three gives twenty-six. For an integer in all three sets, the net weight is three minus three plus one, equal to one. That per-integer accounting explains the formula more clearly than simply memorising alternating signs.

Check through disjoint categories

There are thirteen integers divisible only by six, seven divisible only by ten, and three divisible only by fifteen. The three common multiples form a fourth disjoint category. There are no integers belonging to exactly two of these sets: any number satisfying two tests is divisible by thirty and satisfies the third. The disjoint total thirteen plus seven plus three plus three again equals twenty-six.

Keep endpoints and the event definition visible

If the interval included zero, zero would qualify as an additional common multiple and the answer would change. If the question asked for exactly one test, the answer would be twenty-three, not twenty-six. Stating the interval and whether the condition means at least one, exactly one or exactly two prevents a correct calculation from answering the wrong counting question.

Continue reading: SASMO Counting: No Correct Labels Requires More Than Subtracting Four Cases.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send SASMO-S2-1130.

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 Number Reasoning: Repeated Subtraction Preserves More than Parity

Start with the positive integers eighty-four and thirty. Whenever they differ, replace the larger by the larger minus the smaller. Stop when they are equal. Must the process stop, and what pair remains? This original SASMO-style exercise combines a preserved quantity with a decreasing quantity. Neither idea by itself supplies the complete argument.

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

Check a few moves to understand the rule

The initial pair (84,30) becomes (54,30), then (24,30), then (24,6). The larger entry is always replaced, so both entries remain positive while they differ. Subtracting in the wrong direction could produce a negative value and would be a different process. The stop rule also avoids subtracting equal values to create zero.

Identify the common-divisor invariant

A number divides both a and b exactly when it divides both a-b and b. One direction follows by subtraction, and the reverse by adding b back. Hence replacing the larger by its difference preserves the greatest common divisor. Initially gcd(84,30)=6, so every later pair has greatest common divisor six as well.

Prove that the process cannot continue forever

When a is larger than b, the sum changes from a+b to a, decreasing by the positive integer b. The analogous statement holds when b is larger. The sum remains a positive integer, so it cannot decrease strictly forever. Since the rule allows another move whenever the entries differ, termination must occur at an equal pair.

Use the invariant at the stopping point

If the final pair is (t,t), its greatest common divisor is t. The preserved gcd is six, so t must be six. This determines the final values without needing to guess every subtraction. Continuing the sample from (24,6) through (18,6), (12,6) and (6,6) confirms the predicted endpoint.

See why an invariant alone is incomplete

Knowing that the gcd remains six would not alone prove the process stops. Many hypothetical processes can preserve something while cycling forever. Here the decreasing positive-integer sum rules out cycling. Conversely, proving termination without the gcd would show that some equal pair occurs, but would not identify its value as efficiently.

Connect the reasoning to a faster method

The Euclidean division algorithm groups many repeated subtractions into a remainder step while preserving the same common divisors. The present process is slower but makes the invariant and termination argument visible. Official organiser information is linked below; the numbers and explanation are original learning material, not a reproduced contest problem or a prediction of a student's result.

Continue reading: SASMO-Style Reasoning: Why 31 Numbers from 1 to 60 Force a Divisible Pair.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send SASMO-SUBTRACTION-1130.

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