Conditions for a system of linear equations to have infinite solutions