2695 FOR M=1 TO NG