# Problem 372: Pencils of rays Let R(M, N) be the number of lattice points (x, y) which satisfy M