I'm asked to solve the following determinant:
$$|A|=
\begin{vmatrix}
1 &2 &3 &\cdots &{n-1} &n\\
2 &3 &4 &\cdots &n &1\\
\vdots &\vdots &\vdots & &\vdots &\vdots\\
{n-1} &n &1 &\cdots &{n-3} &{n-2}\\
n &1 &2 &\cdots &{n-2} &{n-1}
\end{vmatrix}
$$
My attempt is to add all the other columns onto the first one, which gives
$$|A|=\frac{n(n+1)}{2}|B|$$
where $|B|$ is, however, none the easier than $|A|$.
I think the result should be very special, since $A$ is a very special symmetric matrix itself. But I simply get stuck. Can you help me? thanks in advance.
EDIT
It just occurred to me that definition might work out well here. Am I on the right track?
I'm now into another question. If $(j_1,j_2,\cdots,j_n)$ is an $n-th$ permutation of ${1,2,\cdots,n}$ and the number of inversion pairs in there is $\tau$, then what's the number of inversion pairs in its inverse permutation $(j_n,j_{n-1},\cdots,j_2,j_1)$ ? This may shed a light on the problem.
Some friend of mine has given me a relatively simple solution, which I will add subsequently as an answer.

Notes
The approach in method 1 seems a little bit overkill for this problem.
I have added another approach (method 2) based on row/column operations.
I hope that will be more accessible.
Method 1 (inspired by Fourier transform on a circular lattice.)
Let $A$ be any $n \times n$ matrix whose entries has the form $$A_{ij} = a_{i+j},\quad 0 \le i, j < n$$ where $( a_k )$ is a periodic sequence of length $n$. Let $\phi_A(z)$ be the polynomial:
$$\phi_A(z) = \sum_{s=0}^{n-1} a_s z^s$$
Let $\displaystyle\;\omega = e^{\frac{2\pi i}{n}}\;$ be the $n^{th}$ root of unity. Let $\Omega$ and $\Delta$ be two $n \times n$ matrices defined by
$$\Omega_{ij} = \frac{1}{\sqrt{n}}\omega^{ij} \quad\text{ and }\quad \Delta_{ij} = \begin{cases} 1, & i + j \equiv 0, \pmod n\\ 0, & \text{ otherwise } \end{cases}$$
It is clear $$( \Omega^\dagger\Omega )_{ij} = \frac{1}{n}\sum_{k=0}^{n-1} \bar{\omega}^{ki}\omega^{kj} = \frac1n \sum_{k=0}^{n-1}\omega^{k(j-i)} = \delta_{ij} = (I_n)_{ij},\quad 0 \le i,j < n$$ where $\delta_{ij}$ is the Kronecker delta. This implies $\Omega^\dagger\Omega = I_n$ and $\Omega$ is an unitary matrix.
Notice $$ ( \Omega^\dagger A O )_{ij} = \frac1n \sum_{k=0}^{n-1}\sum_{l=0}^{n-1} \bar{\omega}^{ki} a_{k+l} \omega^{lj} = \phi_A(\omega^j) \left( \frac1n \sum_{k=0}^{n-1} \omega^{-k(i+j)}\right) = \phi_A(\omega^j) \Delta_{ij} $$ This leads to $$\det(A) = \det(\Delta) \prod_{j=0}^{n-1} \phi_A(\omega_j) = (-1)^{\frac{(n-1)(n-2)}{2}} \prod_{j=0}^{n-1} \phi_A(\omega_j)$$
For our case, $a_s = s+1$ for $0 \le s < n$ and
$$\phi_A(z) = 1 + 2z + 3z^2 + nz^{n-1} = \left(\frac{1-z^{n+1}}{1-z}\right)' = -(n+1)\frac{z^n}{1-z} + \frac{1-z^{n+1}}{(1-z)^2}$$
This implies
$$\phi_A(\omega^j) = \begin{cases} \displaystyle\;\frac{n(n+1)}{2}, & j = 0\\ \\ \displaystyle\;-\frac{n}{1-\omega^j}, & 1 \le j < n \end{cases}$$
As a result, $$\det(A) = (-1)^{\frac{(n-1)(n-2)}{2}} \left(\frac{n(n+1)}{2}\right)(-n)^{n-1}\prod_{j=1}^{n-1}\left(\frac{1}{1-\omega^j}\right)$$
Notice $$\prod_{j=1}^{n-1} (z-\omega^j) = \frac{z^n-1}{z-1} = 1 + z + \cdots + z^{n-1}$$ We get $$\det(A) = \frac12 (-1)^{\frac{n(n-1)}{2}} (n+1)n^{n-1}$$
Up to a sign, this is the same as the OEIS sequence A052182. The difference comes form the way one shift the rows. The one on OEIS are for matrices whose successive rows are shifted/rotated to right while the one for this problem is shifted/rotated to the left.
Method 2 (based on row/column operations)
For any $n > 2$, consider following three $n \times n$ matrices. $D_n, L_n$ are lower triangular while $R_n$ is upper triangle.
$$(D_n)_{ij} = \begin{cases} +1, & i = j\\ -1, & i = j+1\\ 0, & \text{otherwise} \end{cases} ,\quad (L_n)_{ij} = \begin{cases} 1, & i = j\\ 1, & i > 2 \land j = 2\\ 0, & \text{otherwise} \end{cases} \\ (R_n)_{ij} = \begin{cases} 1, & i = j\\ 1, & j = n\\ 0, & \text{otherwise} \end{cases} $$ For example, for $n = 5$, we have
$$D_5 = \begin{bmatrix} 1 & 0 & 0 & 0 & 0\\ -1 & 1 & 0 & 0 & 0\\ 0 & -1 & 1 & 0 & 0\\ 0 & 0 & -1 & 1 & 0\\ 0 & 0 & 0 & -1 & 1 \end{bmatrix} , \quad L_5 = \begin{bmatrix} 1 & 0 & 0 & 0 & 0\\ 0 & 1 & 0 & 0 & 0\\ 0 & -1 & 1 & 0 & 0\\ 0 & -1 & 0 & 1 & 0\\ 0 & -1 & 0 & 0 & 1 \end{bmatrix}\\ R_5 = \begin{bmatrix} 1 & 0 & 0 & 0 & 1\\ 0 & 1 & 0 & 0 & 1\\ 0 & 0 & 1 & 0 & 1\\ 0 & 0 & 0 & 1 & 1\\ 0 & 0 & 0 & 0 & 1 \end{bmatrix}$$
It is clear the determinants of all these matrices are one.
If we multiply $A$ by $R_n$ from the left, the effect is summing all $n$ columns and place the results into last columns.
If we multiply $AR_n$ by $D_n$ from the right, the effect is
The result is
If we multiply $D_n A R_n$ by $L_n$ from the left, the effect is
Since most entries there are $1$, the final effect is on $3^{rd}$ to last row, there is one any only one entries remain for each row.
The resulting matrix look like this:
$$L_n D_n A R_n = \begin{bmatrix} 1 & 2 & 3 & \cdots & n-2 & n-1 & \frac{n(n+1)}{2}\\ 1 & 1 & 1 & \cdots & 1 & 1 & 0\\ 0 & 0 & 0 & \cdots & 0 & -n & 0\\ 0 & 0 & 0 & \cdots & -n & 0 & 0\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots & \vdots\\ 0 & 0 & -n & \cdots & 0 & 0 & 0\\ 0 & -n & 0 & \cdots & 0 & 0 & 0 \end{bmatrix} $$ From this, we find $$\begin{align} \det(A) &= \det(L_n D_n A R_n)\\ &= \overbrace{ (-1)^{n-1} \frac{n(n+1)}{2} }^{\color{blue}{ \text{from expanding } 1^{st} \text{ row} }} \times \overbrace{ (-1)^{\frac{(n-2)(n-3)}{2}} }^{\color{blue}{ \text{from flipping } 2^{nd} \text{ to } (n-1)^{th} \text{row} }} \times (-n)^{n-2}\\ &= \frac12 (-1)^{\frac{n(n-1)}{2}} (n+1)n^{n-1} \end{align} $$