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

Four distinct labels A, B, C and D are assigned one each to four corresponding positions. How many assignments put every label in a position with a different name? This original SASMO-style extension asks for permutations with no fixed positions, sometimes called derangements. All labels remain used exactly once; allowing repetition or leaving a position empty would create a different problem.

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

Start with all complete assignments

There are four factorial, or twenty-four, permutations of four distinct labels. Define event A to mean label A is in position A, and similarly for the other labels. We want assignments in none of these four events. Subtracting just four permutations is incorrect because each named fixed-position event contains several assignments of the other labels.

Subtract the four single fixed-position counts

For a chosen fixed label, the other three can be arranged in three factorial, or six, ways. Four named choices therefore contribute twenty-four to the first subtraction. Some permutations appear in more than one of these event counts, so this subtraction alone removes too much; an answer of zero at this stage is only an intermediate calculation.

Restore assignments with two named fixed positions

There are six ways to choose two labels to fix, and the remaining two can be assigned in two factorial ways. The pair-intersection contribution is twelve. We add it back because every assignment lying in two named fixed events was subtracted twice even though the union should ultimately exclude it only once.

Continue through triples and all four

Four choices of three fixed labels each leave one completion, producing a subtraction of four. Fixing all four gives one final addition. The result is twenty-four minus twenty-four plus twelve minus four plus one, equal to nine. The identity permutation belongs to many intersections, which is exactly why the complete alternating correction is needed.

Check by a structural classification

A permutation without fixed positions on four objects is either one four-cycle or two disjoint swaps. There are six four-cycles and three ways to split the four labels into two unordered pairs. Their sum is nine, independently confirming inclusion-exclusion. A three-cycle cannot work because the fourth label would then remain fixed.

Convert to probability only under a stated random mechanism

If every complete permutation is equally likely, the chance of no correct positions is nine out of twenty-four, or three eighths. The count itself did not require a random process. Separate the deterministic set of valid assignments from any probability model, and check all overlaps before deciding that subtracting a few obvious unwanted cases is sufficient.

Continue reading: SASMO Counting: Minimum and Maximum Conditions Both Matter in an Integer Sum.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send SASMO-S10-1129.

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 Counting: Minimum and Maximum Conditions Both Matter in an Integer Sum

How many ordered integer triples (x,y,z) satisfy x plus y plus z equal to twelve, with each entry at least two and at most five? This original SASMO-style extension combines a fixed total with both lower and upper restrictions. Ordered means that changing which labelled variable receives a number can produce a different triple. Ignoring either bound gives a different counting problem.

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

Remove the minimum requirement first

Write a equal to x minus two, b equal to y minus two and c equal to z minus two. The new entries are nonnegative and sum to six. The original upper bound five becomes an upper bound three on each shifted variable. Shifting makes the lower limits simple, but it does not make the upper limits disappear.

Count the unrestricted shifted triples

Without upper bounds, the number of nonnegative ordered solutions to a plus b plus c equal to six is eight choose two, or twenty-eight. One way to see this is to place six identical marks and two separators in a line; the three gaps specify a, b and c. This is an intermediate count that deliberately includes invalid cases.

Subtract a named variable exceeding its bound

If a is at least four, put a prime equal to a minus four. Then a prime plus b plus c equals two, giving four choose two, or six cases. The same argument gives six violations for b and six for c. The threshold is four, since the permitted shifted values stop at three; subtracting from three would remove valid boundary cases.

Check whether violating cases overlap

Two shifted variables cannot both be at least four because their sum alone would be at least eight, exceeding the available total six. Therefore there are no double or triple intersections to restore. The valid count is twenty-eight minus three times six, equal to ten. In a larger-total problem, this no-overlap shortcut would require a fresh check.

Enumerate the answer independently

The possible value patterns for the original entries are (2,5,5), (3,4,5) and (4,4,4). The first pattern has three ordered placements, the second has six and the last has one. Their total is ten. This second route confirms both the numeric answer and the interpretation that labelled variables make permutations distinct.

Keep bounds and object labels in the final explanation

An unordered version would have only three patterns, while a version without the upper limit would have twenty-eight shifted solutions. State which question is being answered before writing a formula. Lower-bound shifts, named violation sets and overlap checks are separate steps, and all three are needed to justify inclusion-exclusion rather than merely remember its alternating signs.

Continue reading: SASMO Lattice Counting: Ordered Factor Pairs Below a Product Boundary Need Floor Values.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send SASMO-S9-1129.

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