2026 AIME II Problem 13
Problem 13 of 15HarderNumber TheoryCombinatoricsProblem-Solving Techniques
Call finite sets of integers and cousins if
• and have the same number of elements,
• and are disjoint, and
• the elements of can be paired with the elements of so that the elements in each pair differ by exactly
For example, and are cousins. Suppose that the set has exactly cousins. Find the least number of elements the set can have.
Your answer
Integer from 0 to 999
Show solution
Solution
A cousin is the image of an injection sending each to or landing outside If then has nowhere to go, so every maximal block of consecutive elements of has size or A double block is forced to map to while a singleton chooses or Two blocks can fight over a value only when exactly one integer separates them, so group blocks into chains: consecutive blocks with gaps of exactly one. Within a chain the only consistent patterns are “the first blocks shift left and the rest shift right,” since a block choosing right and its successor choosing left would collide; a double block acts as both left and right, forcing the switch to happen exactly at it. Hence a chain of singletons produces distinct images, a chain containing one double produces exactly and a chain with two doubles produces Distinct patterns give distinct sets and choices in different chains are independent, so the number of cousins is the product of over the all-singleton chains.
We need while minimizing the element count (chains with doubles only waste elements). Replacing a composite factor with the two factors strictly lowers the cost, because So the optimum uses the prime factorization: realized by five chains of singletons — runs of every-other integer — placed far apart.
The least possible number of elements is
Tagged: bijection · prime factorization · optimization