go through the link https://www.engineeringmathgeek.com/eigenvectors-of-repeated-eigenvalues/
M
Mahak
by n-r formula where n is order of matrix and r is rank of matrix , so by n-r we can find the number of linearly independent eigenvectors for same eigenvalues