Maths Olympiad Prep

Library / HMMT February /732 of 1302

HMMT February

Combinatorics Difficulty 5.3 AIME, harder Find the answer

Compute the number of sequences of integers (a1,…,a200)(a_{1}, \ldots, a_{200}) such that the following conditions hold. - 0≤a1<a2<⋯<a200≤2020 \leq a_{1}<a_{2}<\cdots<a_{200} \leq 202. - There exists a positive integer NN with the following property: for every index i∈{1,…,200}i \in\{1, \ldots, 200\} there exists an index j∈{1,…,200}j \in\{1, \ldots, 200\} such that ai+aj−Na_{i}+a_{j}-N is divisible by 203.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Let m:=203m:=203 be an integer not divisible by 3. We'll show the answer for general such mm is m⌈m−12⌉m\left\lceil\frac{m-1}{2}\right\rceil. Let x,y,zx, y, z be the three excluded residues. Then NN works if and only if {x,y,z}≡{N−x,N−y,N−z}( mod m)\{x, y, z\} \equiv\{N-x, N-y, N-z\} (\bmod m). Since x,y,z( mod m)x, y, z(\bmod m) has opposite orientation as N−x,N−y,N−z( mod m)N-x, N-y, N-z(\bmod m), this is equivalent to x,y,zx, y, z forming an arithmetic progression (in some order) modulo mm centered at one of x,y,zx, y, z (or algebraically, one of N≡2x≡y+z,N≡2y≡z+x,N≡2z≡x+yN \equiv 2 x \equiv y+z, N \equiv 2 y \equiv z+x, N \equiv 2 z \equiv x+y holds, respectively). Since 3∤m3 \nmid m, it's impossible for more than one of these congruences to hold. So the number of distinct 3-sets corresponding to arithmetic progressions is m⌈m−12⌉m\left\lceil\frac{m-1}{2}\right\rceil. Since our specific m=203m=203 is odd this gives mm−12=203⋅101=20503m \frac{m-1}{2}=203 \cdot 101=20503.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.