Write A=I+N, where N=[11−1−1]. Direct multiplication gives N2=0. Thus Ar=I+rN for every nonnegative integer r.
Also (I+N)−1=I−N, so the same formula Ar=I+rN holds for negative integers. Therefore A(m⋅m)+Am=2I+(m2+m)N, while 3I−A−6=3I−(I−6N)=2I+6N.
Since N is nonzero, equality holds exactly when m2+m=6, or (m−2)(m+3)=0. Both m=2 and m=−3 are integers. Hence S={−3,2} and n(S)=2.