IMC 2016 · Problem 3

Day 223rd IMC · Blagoevgrad, Bulgaria

Statement

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 \colon \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.

Official solution

Hidden so you can work on the problem first.

Proposed by Ander Lamaison Vidarte, Berlin Mathematical School, Germany.