SASMO Structured Counting: Three Pairs of Brackets Have Five Balanced Arrangements

Arrange three opening brackets and three closing brackets into a valid balanced bracket string. How many arrangements are possible? This original SASMO-style extension shows why having equal totals is necessary but not sufficient. At every point while reading from left to right, a closing bracket must have an earlier unmatched opening bracket. That local restriction changes the count from an ordinary choice of positions.

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

Separate equal totals from valid prefixes

Choosing three of six positions for opening brackets gives twenty strings with equal totals. However, a string beginning with a closing bracket cannot be balanced. More generally, no prefix may contain more closing than opening brackets. The full string must end with the counts equal. These two conditions describe the matching rule without relying on whether a string looks symmetrical.

Classify the first opening bracket by its partner

The first symbol of a nonempty balanced string must be an opening bracket. Its matching closing bracket divides the string into a balanced inside part and a balanced part after it. With three pairs in total, the inside may contain zero, one or two pairs. These cases are disjoint because the matching closing position is uniquely determined.

Count the three cases

There is one empty balanced string, one balanced one-pair string, and two balanced two-pair strings: (()) and ()(). For three pairs, zero inside leaves two pairs after, giving two choices. One inside and one after gives one choice. Two inside and none after gives two choices. The total is two plus one plus two, or five.

List the five strings as a check

The arrangements are ((())), (()()), (())(), ()(()) and ()()(). Each has three of each symbol and satisfies the prefix condition. Listing verifies the small case, while the unique-partner classification proves that no other valid string was omitted. Merely identifying five examples without a completeness argument would not establish the final count.

Explain the product in a general recurrence

If C n counts balanced strings with n pairs and C zero is one, then C n is the sum of C k times C(n-1-k) for k from zero to n minus one. The product combines independent choices for the inside and after parts, and the sum combines the possible partner positions. For three, this gives C zero C two plus C one C one plus C two C zero.

Keep additional equivalence rules out of the count

These strings are read in a fixed left-to-right order. Rotating them or treating mirror images as equivalent would change the task and could violate the prefix convention. The exercise counts ordered bracket strings, not circular necklaces. It is original structured-counting practice and makes no claim that a current official SASMO paper contains this particular item.

Continue reading: SASMO Counting Practice: Byes Fill a Bracket but Do Not Eliminate Players.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-S6-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-S6-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