This answer is intended to supplement Donald Splutterwit’s educated guess that the inverse has the same form as the original matrix.
You know that the inverse matrix is at least going to be symmetric since the original one is. You also know that (or can find out from other questions here) that the eigenvalues of a matrix that has $a$’s along the main diagonal and $b$’s elsewhere are $a+(n-1)b$, with multiplicity $1$, and $a-b$, with multiplicity $n-1$. Moreover, you can find by inspection that the first eigenspace is spanned by $[1,1,1,\dots,1]^T$, while a basis for the second eigenspace is $$\{[1,-1,0,0,\dots,0]^T,[1,0,-1,0,\dots,0]^T,\dots,[1,0,0,0,\dots,-1]^T\}.$$ Observe that this eigenbasis is valid for every matrix of this form, so that every such matrix can be generated by a suitable choice of eigenvalues. Working in the other direction, then, if we start with eigenvalues $\lambda$ and $\mu$, we can find the entries of the resulting matrix by solving the system $\lambda = a+(n-1)b$, $\mu = a-b$ for $a$ and $b$: $$a = b+\mu, b = {\lambda-\mu \over n}.$$ If the matrix is nonsingular, then the eigenvalues of its inverse are the reciprocals of its eigenvalues, with the same multiplicites and eigenspaces, and so the inverse matrix does indeed have the same form.
For your matrix, the eigenvalues are $n-2$ and $-2$, so the inverse eigenvalues are $\frac1{n-2}$ and $-\frac12$, and therefore the inverse matrix has $-{n-3\over2n-4}$ on the main diagonal and ${1\over2n-4}$ elsewhere. When $n=2$, the matrix is singular, as should be obvious by inspection.