Maths Olympiad Prep

Library / /72 of 91

Combinatorics Difficulty 7.0 National Olympiad, round 2 Prove it India

Let nn be a natural number. A sequence x1,x2,,xn2x_1, x_2, \dots, x_{n^2} is called n-good if each xix_i is an element of {1,2,,n}\{1, 2, \dots, n\} and the ordered pairs (xi,xi+1)(x_i, x_{i+1}) are all different for i=1,2,,n2i = 1, 2, \dots, n^2 (here we consider the subscripts modulo n2n^2). Two n-good sequences x1,x2,,xn2x_1, x_2, \dots, x_{n^2} and y1,y2,,yn2y_1, y_2, \dots, y_{n^2} are called similar if there exists an integer kk such that yi=xi+ky_i = x_{i+k} for all i=1,2,,n2i = 1, 2, \dots, n^2 (again taking the subscripts modulo n2n^2). Suppose that there exists a non-trivial permutation σ\sigma of {1,2,,n}\{1, 2, \dots, n\} and an n-good sequence x1,x2,,xn2x_1, x_2, \dots, x_{n^2} which is similar to σ(x1),σ(x2),,σ(xn2)\sigma(x_1), \sigma(x_2), \dots, \sigma(x_{n^2}). Show that n2(mod4)n \equiv 2 \pmod{4}.

Solution

Without loss of generality we assume that σ(1)1\sigma(1) \neq 1. Also assume that x1=x2=1x_1 = x_2 = 1. Let kk be the smallest natural number such that σk(1)=1\sigma^k(1) = 1. And let rr be the smallest natural number such that σ(xi)=xi+r\sigma(x_i) = x_{i+r} for all i=1,2,,ni = 1, 2, \dots, n. Therefore σk(xi)=xi+kr\sigma^k(x_i) = x_{i+kr}. Since x1=x2=1x_1 = x_2 = 1, it follows that 1+kr1(modn2)1+kr \equiv 1 \pmod{n^2}, so n2n^2 divides krkr. Further, it follows that σk\sigma^k is the identity permutation. In fact, by looking at the pairs (a,a)(a, a) appearing in the sequence, it follows that for any ii and 1j<k1 \le j < k we have σj(i)i\sigma^j(i) \neq i. So σ\sigma is made up of n/kn/k kk-cycles. Let l=n/kl = n/k. Without loss of generality, we can assume that σ(i)=i+l\sigma(i) = i+l.

Consider {r,2r,3r,,(k1)r}(modn2)\{r, 2r, 3r, \dots, (k-1)r\} \pmod{n^2}. Let ss be the smallest natural number such that sjr(modn2)s \equiv jr \pmod{n^2}. Replacing σ\sigma by σj\sigma^j, we may assume that s=rs = r. It then follows that kr=n2kr = n^2, so r=nlr = nl.

For each i=1,2,,n2i = 1, 2, \dots, n^2, let aia_i be an integer such that 0ain10 \le a_i \le n-1 and aixi+1xi(modn2)a_i \equiv x_{i+1} - x_i \pmod{n^2}. Note that for any j=0,1,2,,n1j = 0, 1, 2, \dots, n-1, there exists exactly nn values of ii for which ai=ja_i = j. Since σ(i)=i+l\sigma(i) = i+l, it follows that ai+r=aia_{i+r} = a_i. Therefore for any j=0,1,2,,n1j = 0, 1, 2, \dots, n-1, there exists exactly ll values of ii with 1ir1 \le i \le r and ai=ja_i = j. Hence we get l=xr+1x1i=1railn(n1)/2(modn)l = x_{r+1} - x_1 \equiv \sum_{i=1}^r a_i \equiv \ln(n-1)/2 \pmod{n}. If nn is odd then it follows that l=nl = n. If nn is even, then we have n/2n/2 divides ll. In this case, if ll is even then again l=nl = n. Since k>1k > 1, it follows that l<nl < n and hence n2(mod4)n \equiv 2 \pmod{4}.

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: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.