AMC 10 to AIME Counting: A Capacity Limit Changes a Stars-and-Bars Count

A standard distribution formula counts solutions before upper limits are enforced. To use it safely, define the objects and boxes, count the unrestricted cases, then remove exactly the forbidden configurations. This original integer-counting problem offers a manageable step from AMC 10 practice towards more structured AIME preparation. It is not an official contest question.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10-BOUNDED-BALL-DISTRIBUTIONS-1120 and tell us your school year and question.

Translate the wording into integer variables

Distribute seven identical counters among three distinct boxes labelled A, B and C. Empty boxes are allowed, but no box may hold more than four counters. Let the contents be x, y and z. The task is to count nonnegative integer triples with x + y + z = 7 and x, y, z at most four. Counters are not individually labelled.

Count the unrestricted distributions

Without the capacity limit, seven counter symbols and two separators describe every triple exactly once. Choosing the separator locations among nine positions gives nine choose two, or thirty-six. The labels of the boxes are represented by their left-to-right order, so there is no additional division by six. Adjacent separators allow an empty middle box, which is permitted here.

Count a violation by shifting its variable

For box A to violate the limit it must contain at least five counters. Set x = x prime + 5, with x prime nonnegative. The remaining equation is x prime + y + z = 2. There are four choose two, or six, such solutions. By the same argument, each of boxes B and C has six violating distributions. The subtraction threshold is five, not four.

Check whether violations can overlap

Two boxes each containing at least five counters would require at least ten, but only seven exist. Thus no distribution is in two violation groups, and subtracting all three groups does not double-remove any case. The final count is thirty-six minus eighteen, or eighteen. With a larger total, overlaps could exist and an inclusion-exclusion correction would be necessary.

Verify by fixing one box

For x = 0, the allowed pairs (y,z) summing to seven are (3,4) and (4,3), giving two. The corresponding counts for x = 1, 2, 3 and 4 are three, four, five and four. Their sum is eighteen. This independent enumeration checks both the upper bound and the empty-box convention. For later practice, vary the total and predict when simultaneous violations first become possible before applying a memorised formula.

Continue reading: AMC 10 to AIME Counting: Adjacent Seats Need a Block and a Rotation Convention.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send AMC10-BOUNDED-BALL-DISTRIBUTIONS-1120.

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