1897 FOR M=1 TO L