5981 FOR M=1 TO NV STEP KP