2026 AIME II Problem 15
Problem 15 of 15HarderNumber TheoryCombinatoricsProblem-Solving Techniques
Find the number of ordered -tuples having the following properties:
• for all
• is a multiple of
• is a multiple of
Your answer
Integer from 0 to 999
Show solution
Solution
Work modulo entries are and entries are Because the differences of hit every nonzero residue mod exactly once, the seven triples are the lines of a Fano plane on the positions: every pair of positions lies on exactly one line, and any two lines meet in exactly one point. Let be the set of positions holding a and A product term survives exactly when its line avoids If is the number of entries equal to on that line, its contribution is and the linear condition constrains the values to sum to mod
Casework on the all-s tuple works: a single can’t sum to none. no line survives; the two nonzero entries must be a and a three s sum to only if all equal, and the three nonzero positions must not form a line, else its product is four s must split two and two; exactly one line avoids a non-line (spoiling the sum), while a line is avoided by no line: five s must go four and one; exactly two lines avoid meeting at a point and covering the five positions, and their products cancel exactly when the lone minority value avoids six s sum to if all equal or three of each; the four lines avoiding pairwise meet in the six nonzero positions, and since the product of all four line-products is we need exactly two negative lines. All-equal gives or negative lines; for three ’s, viewing positions as edges of on the four lines, a line is negative exactly when it has odd degree in the chosen -edge set, and exactly the three-edge paths (of the subsets) give two odd degrees: seven s need two or five ’s, which make or lines negative respectively, but needs none.
The total is
Tagged: modular arithmetic · graph theory · casework