3117 FOR M=1 TO NV STEP 5