Problem

Source: Romanian TST 5 2008, Problem 1

Tags: induction, graph theory, algebra proposed, algebra



Let $ n$ be a nonzero positive integer. Find $ n$ such that there exists a permutation $ \sigma \in S_{n}$ such that \[ \left| \{ |\sigma(k) - k| \ : \ k \in \overline{1, n} \}\right | = n.\]