The system AX=B of n equation in n unknowns has infinitely many solutions, if
det A≠0
(adj A)B≠O
det A=0
(adj A)B=O
X=A−1B
⇒X=(adj A)B|A|
Clearly, if the system has infinite solutions |A|=0 and (adj A)B=0