2840 FOR M=1 TO 5