Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 2016 / Problems / Day 2, P8

IMC 2016 · Day 2 · P8

very hard

Let nn be a positive integer, and denote by Zn\mathbb{Z}_n the ring of integers modulo nn. Suppose that there exists a function f:ZnZnf : \mathbb{Z}_n \to \mathbb{Z}_n satisfying the following three properties:

(i) f(x)xf(x) \ne x,

(ii) f(f(x))=xf(f(x)) = x,

(iii) f(f(f(x+1)+1)+1)=xf(f(f(x + 1) + 1) + 1) = x for all xZnx \in \mathbb{Z}_n.

Prove that n2(mod4)n \equiv 2 \pmod 4.

(Proposed by Ander Lamaison Vidarte, Berlin Mathematical School, Germany)

Solution (official)

From property (ii) we can see that ff is surjective, so ff is a permutation of the elements in Zn\mathbb{Z}_n, and its order is at most 2. Therefore, the permutation ff is the product of disjoint transpositions of the form (x,f(x))\bigl( x, f(x) \bigr). Property (i) yields that this permutation has no fixed point, so nn is be even, and the number of transpositions is precisely n/2n/2.

Consider the permutation g(x)=f(x+1)g(x) = f(x + 1). If gg was odd then gggg \circ g \circ g also would be odd. But property (iii) constraints that gggg \circ g \circ g is the identity which is even. So gg cannot be odd; gg must be even. The cyclic permutation h(x)=x1h(x) = x - 1 has order nn, an even number, so hh is odd. Then f(x)=ghf(x) = g \circ h is odd. Since ff is the product of n/2n/2 transpositions, this shows that n/2n/2 must be odd, so n2(mod4)n \equiv 2 \pmod 4.

Remark. There exists a function with properties (i–iii) for every n2(mod4)n \equiv 2 \pmod 4. For n=2n = 2 take f(1)=2f(1) = 2, f(2)=1f(2) = 1. Here we outline a possible construction for n6n \ge 6.

Let n=4k+2n = 4k + 2, take a regular polygon with k+2k + 2 sides, and divide it into kk triangles with k1k - 1 diagonals. Draw a circle that intersects each side and each diagonal twice; altogether we have 4k+24k + 2 intersections. Label the intersection points clockwise around the circle. On every side and diagonal we have two intersections; let ff send them to each other.

This function ff obviously satisfies properties (i) and (ii). For every xx we either have f(x+1)=xf(x + 1) = x or the effect of adding 1 and taking ff three times is going around the three sides of a triangle, so this function satisfies property (iii).

How the field did

contestants scored
314
average (of 10)
2.06
solved (≥ 80%)
10.2%
near-0 (≤ 10%)
62.1%
discrimination
0.38

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2022 · Day 1 · P3very hardavg 2.3/10 · solved 12% · near-0 55% · disc 0.64
IMC 2025 · Day 1 · P5killeravg 1.0/10 · solved 5% · near-0 79% · disc 0.49
IMC 1999 · Day 2 · P12killeravg 0.4/10 · solved 2% · near-0 91% · disc 0.30
IMC 2016 · Day 1 · P5killeravg 0.3/10 · solved 2% · near-0 96% · disc 0.29