Linear Algebra

Answer & solution
Official answer: 3
The matrix is J-I, where J is the 4-by-4 all-ones matrix. The all-ones vector has eigenvalue 4 for J and therefore eigenvalue 3 for J-I. Every vector whose coordinates sum to zero has eigenvalue 0 for J and -1 for J-I; that subspace has dimension three. The full spectrum is 3,-1,-1,-1, so the largest eigenvalue is 3.
For any vector v, Jv is the vector whose four entries are sum(v). Thus v=(1,1,1,1) gives (J−I)v=3v. Every zero-sum vector gives (J−I)v=−v; examples (1,−1,0,0),(0,1,−1,0),(0,0,1,−1) form a basis for that three-dimensional subspace. These four independent eigenvectors account for the whole 4×4 matrix. The trace check 3−1−1−1=0 matches the zero diagonal.