198. From the fact that p and q are coprime, using the Euclidean algorithm, it is established that any integer n can be represented in the form:
n=px+qy, where x and y are integers.
Indeed, let p>q; then p=qd+r, where 00 (since the number n is positive). On the plane with coordinates x0,y0, the lines x0=q,y0=0,px0+ +qy0=0 outline a shaded triangle as shown in Fig. 22; we need to find the number of "integer points" in this triangle. It is clear that this number is exactly half the number of "integer points" in the rectangle OABC (there are no "integer points" on the diagonal of the rectangle, since p and q are coprime). Since the number of "integer points" inside the rectangle is obviously (p−1)⋅(q−1), we arrive at the same value of the desired number t as above.