What is the condition on x for n by n symmetric matrix with 1 on diagonal and x everywhere else to be positive definite
Let the matrix be
\begin{bmatrix} 1 & x & x & ... &x\\ x & 1 & x & ... &x\\ x & x & 1 & ... &x\\ .. & .. & ..& ...& ..\\ x & x & x & ... &1 \end{bmatrix}
The eigenvalues of this matrix are $1-x$ and $1+(n-1)x$. For both to be positive, we must have
$$-\frac1{n-1}\lt x\lt 1\;.$$