In this post, I'll consider everything modulo $ n $.
I need to find all $ n $-uplets $ \{a_1, \dots a_n\} $ (multiplicity taken into account, but not order) that can be written as $ \{\sigma_1 - 1, \dots, \sigma_n - n\} $ where $ \sigma $ is a permutation of $ [\![1, n ]\!] $. Formally, I want to find $ A = \{ (\sigma_1 - 1, \dots, \sigma_n - n\}\ |\ \sigma \text { permutation of } [\![1, n ]\!] \} $.
If you denote $ B = \{\{a_1, \dots, a_n\}\ |\ a_1, \dots, a_n,\ a_1 + \dots + a_n \equiv 0\} $, I conjecture that $ A = B $.
This looks like a well-known result but I can't get my hand on a single proof.
Examples :
$ (0, 0, 1, 3) $ comes from $ 1 2 4 3 $.
$ (2, 2, 2, 2, 4, 4, 4, 4) = (2, 4, 2, 4, 2, 4, 2, 4) $ which comes from $ 36507214 $.
$ (0, 3, 3, 3, 3, 6, 6, 6, 6) = (3, 6, 0, 3, 6, 3, 3, 6, 6) $ which comes from $ 483720156 $. This last example has unique solution up to permutation (by keeping the same cycle lengths, I mean).
Solutions are most of the time unique.
It's straightforward that $ A \subseteq B $ because $ \{a_1, \dots, a_n\} \in A $ implies $$ a_1 + \dots + a_n \equiv \sigma_1 - 1 + \dots + \sigma_n - n = \sigma_1 + \dots + \sigma_n - 1 - \dots - n = 0 $$
I wandered trying to go from a $ n $-uplet to another. Here's my best attempt : If $ \sigma $ and $ \tau $, two permutations such that $ (\sigma_1 - 1, \dots, \sigma_n - n) = (a_1, \dots, a_n) $ and $ (\tau_1 - 1, \dots, \tau_n - n) = (b_1, \dots, b_n) $, then $ \sigma \circ \tau $ gives $ \{\tau_{\sigma_1} - 1, \dots, \tau_{\sigma_n} - n\} = \{a_1 + b_{\sigma_1}, \dots, a_n + b_{\sigma_n}\} $
The conjecture is true. See this paper of Marshall Hall and this thread on mathoverflow.
The key idea is to reduce the problem to expliciting a way to go from $ a_i + b_i \equiv c_i \mod n $ for all $ i $ (where $ a_i $ is given and $ b, c $ are permutations of $ [\![1, n]\!] $) to $ a_i' + b_i' \equiv c_i \mod n $ where $ a_i' $ is a tuple differing from $ a $ in only two positions and $ b' $ is a permutation of $ [\![1, n]\!] $. This transformation turns out to be possible by repeated "fixing up".