2026 AMC 10A Problem 20
Boxes with dimensions or have volume . How many different boxes with integer side lengths at least , including these two, have volume ? Boxes are considered different if they have different dimensions.
Show solution without answering
Key insight
510,510 is the product of the seven primes 2 through 17, each used once. A box is just a way to split these seven primes into three non-empty groups.
Solution
Side lengths that multiply to a number are built out of its prime factors, so factor first.
1. Factor the volume. Divide by small primes one at a time:
and . So
seven different primes, each used exactly once.
- Check with the two given boxes. , and : each prime lands in exactly one side. Likewise , and .
3. A box is a way to split the primes into three groups. Each side is the product of the primes in its group, and each prime goes into exactly one side.
- "Side at least " means no group is empty (an empty group would give a side of ).
- Different splits give different boxes: because each prime appears only once, you can read off which primes a side contains just by factoring it.
So we must count the ways to split different primes into non-empty groups, where the groups have no order.
4. First pretend the sides have names. Call them length, width and height. Each of the primes chooses one of the names, so there are
ways. Some of these leave a side with no primes; remove those next.
5. Remove the ones with an empty side (inclusion–exclusion).
- Ways where the length gets no prime: each prime chooses between the other names, ways. The same is true for width and for height, so subtract .
- A way with two empty sides (all seven primes on one side) was subtracted twice, once for each of its empty sides. There are such ways (all on the length, all on the width, all on the height), so add back.
- No way has all three sides empty.
With named sides, the count is
6. Now remove the names. A box does not care which side is called length. Its three sides are always three different numbers (different groups of primes have different products), so each box was counted once for each order of its sides, times:
- Test the method on a small case. With four primes, , one side must be a product of two primes and the others single primes, so there are boxes. The method gives . It agrees.
The answer is .
Why this works
When a number is a product of different primes, each factor is decided completely by which primes it takes, so a factoring question turns into "put different objects into groups". The standard plan is: count with named groups, use inclusion–exclusion to rule out empty groups, then divide by the number of orders. Dividing by is safe here only because no two sides can be equal; if a prime were repeated, two sides could match and those boxes would need separate care. (Aside: the number of ways to split different objects into non-empty unnamed groups is called a Stirling number of the second kind, and it equals .)
Alternative approach
Count by the sizes of the three groups. The sizes add to and each is at least , so they are , , or .
| group sizes | how to choose | boxes |
|---|---|---|
| choose the primes: ; the last two are single sides | ||
| choose the , then the from the remaining : | ||
| choose the single prime: ; split the other into two groups of : | ||
| choose the : ; split the other into two pairs: |
The total is . When two groups have the same size, divide by , because swapping those two groups gives the same box.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
, a product of seven distinct primes. A box with all sides at least corresponds exactly to a split of these seven primes into three non-empty unordered groups, each side being the product of its group.
With the sides labelled, the number of assignments of the primes to the three sides with no side empty is, by inclusion–exclusion,
The three sides are always distinct, so each box is counted times, giving boxes.
The answer is .
Review in the AoPS books
- Intermediate Counting & Probability, Chapter 7: Distributions (§7.2, §7.3)
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic (§1.3)
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Intermediate Counting & Probability, Chapter 4: Constructive Counting and 1-1 Correspondences (§4.4, §4.5, §4.6)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.