what is the signature of the symmeric bilinear form defined by the following matrix
$\left(\begin{matrix} 1 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & -5\\ 0 & 0& 0 & -5 & 0\\ 0 & 0 & -5 & 0 & 0\\ 0 & -5 & 0 & 0 & 0\\ \end{matrix}\right)$
i was thinking that sigantutre =$2p-r $ where p is a numberof positive entries and r is the ranks of the given matrix
so her p=1 and r= 5 and signature $=2.1-5=-3$
By Sylvester, since $\det(1)=1$ and $\det(M_{5\times5})>0$ the signature can be
1. $+++++$
2. $+++--$
3. $+----$
Case 1 can be excluded since
$$\det(M_{2\times2})=\begin{vmatrix}0&-5\\-5&0\end{vmatrix}=-25 <0$$
thus we have at least one negative eigenvalue. Moreover
$$\det(M_{3\times3})=\begin{vmatrix}1&0&0\\0&0&-5\\0&-5&0\end{vmatrix}=-25 <0$$
has signature $++-$ then also case 3 can be excluded.
Then the signature is $$n_+=3 \quad n_-=2 \quad n_0=0$$