take four - handled the case for 5n+1 stations in a line