3155 FOR K=1 TO NG