5202 FOR J=1 TO N