2025 AIME I · Question 15
Problem outline
Count ordered triples from through for which is divisible by . Report the last three digits of the count.
Show answer and methods 1 methods
Answer
735
Method 1 Classify unit cubes and reduce the modulus
For , cubing the units modulo gives exactly once each residue of or modulo 9 among the residues modulo . To see this, changing a representative by preserves its cube modulo . If then ; writing shows has exactly one factor 3. Thus . This proves injectivity and the two finite sets both have size ; direct reduction modulo 9 gives the stated image.
Only zero or two of the entries can be units: one unit or three signs cannot sum to zero modulo 9. For exactly two units, choose the position of the multiple of 3, its value, and one designated remaining unit (use the earlier remaining position). The cube of the last entry is forced and is modulo 9, hence has exactly one allowed unit root. With this yields triples.
When all entries are divisible by 3, divide them by 3. The new entries run from 1 to 243 and their cube sum must vanish modulo . Cubes modulo 81 depend only on the entries modulo 27, each residue occurring nine times. It suffices to count valid triples from 1 to 27, then multiply by .
For entries from 1 to 27, the exactly-two-units count is , applying the same argument with . If all three entries are multiples of 3, divide again: the three quotients run from 1 to 9 and their cube sum must vanish modulo 3. Since , any choice of the first two quotients permits exactly three choices for the last. This adds , for a subtotal of .
Combining the two outer cases gives , with remainder modulo 1000.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)