Is there any reason for a 3 equation case and then a n equation case? Why not just go from 2 to n?