1945 FOR M=0 TO MA