Maths Olympiad Prep

Library / /623 of 860

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. - 0a1<a2<<a2002020 \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+ajNa_{i}+a_{j}-N is divisible by 203.

A number or a short expression. Spacing and $ signs are ignored.

Solution

Let m:=203m:=203 be an integer not divisible by 3. We'll show the answer for general such mm is mm12m\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}{Nx,Ny,Nz}(modm)\{x, y, z\} \equiv\{N-x, N-y, N-z\} (\bmod m). Since x,y,z(modm)x, y, z(\bmod m) has opposite orientation as Nx,Ny,Nz(modm)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 N2xy+z,N2yz+x,N2zx+yN \equiv 2 x \equiv y+z, N \equiv 2 y \equiv z+x, N \equiv 2 z \equiv x+y holds, respectively). Since 3m3 \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 mm12m\left\lceil\frac{m-1}{2}\right\rceil. Since our specific m=203m=203 is odd this gives mm12=203101=20503m \frac{m-1}{2}=203 \cdot 101=20503.

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

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.