The Cartan matrix of the root system $A_n$ looks like, denote it by $A'_n$
$$ A'_n= \begin{bmatrix} 2 & -1 & 0 & 0&\ldots & 0 \\[0.3em] -1 & 2 & -1 & 0 & \ldots & 0 \\[0.3em] 0 &-1 &2 & -1 & \ldots & 0 \\[0.3em] \vdots & & &\ddots & 2& -1 \\[0.3em] 0 & \ldots & & & -1&2 \end{bmatrix}$$
I need to find the inverse matrix explicitly. I know that $\det A'_n=n+1$, using this and the fact that
$$ b_{ij} := (A'_n)_{ij}^{-1} = (-1)^{i+j} \frac{\det (A''_n)_{ij}}{\det (A'_n)_{ij}}$$
where $(A''_n)_{ij}$ is the matrix $A'_n$ with $i$-th row and $j$-th column removed. For the first row I could find that
$$ b_{1k} = \frac{n-k+1}{n+1} $$
But this nice pattern does not continue for other rows. Is there an easier way to approach this problem ? I would appreciate any hints/suggestions/answers for this problem.