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