I'm looking for a closed form of the determinant of matrices like
$\begin{bmatrix}1 & 2 & 3\\2 & 3 & 1\\ 3& 1 &2\end{bmatrix}$
or
$\begin{bmatrix}1 & 2 & 3 &4\\2 & 3 &4 & 1\\ 3&4& 1 &2\\ 4& 1&2&3\end{bmatrix}$,
that means Henkel matrices of the size n with sequence (1, 2, 3,..., n, 1, 2,..., n-1)
The magnitude of the determinant is $$\frac{n^{n-1}(n+1)}{2}.$$ The sign is given by $$f(n) = \begin{cases}+ & \mathrm{floor}(n/2) \text{ is even.} \\ - & \mathrm{floor}(n/2) \text{ is odd} .\end{cases}$$A useful formula is $\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$.