Problem:
Consider the set of all triangles OPQ where O is the origin and P and Q are distinct points in the plane with nonnegative integer coordinates (x,y) such that 41x+y=2009. Find the number of such distinct triangles whose area is a positive integer.
Solution:
First note that the distance from (0,0) to the line 41x+y=2009 is
412+12ββ£41β 0+0β2009β£β=292β2009β
and that this distance is the altitude of any of the triangles under consideration. Thus such a triangle has integer area if and only if its base is an even multiple of 292β. There are 50 points with nonnegative integer coefficients on the given line, namely, (0,2009),(1,1968),(2,1927),β¦,(49,0), and the distance between any two consecutive points is 292β. Thus a triangle has positive integer area if and only if the base contains 3,5,7,β¦, or 49 of these points, with the two outermost points being vertices of the triangle. The number of bases with one of these possibilities is
48+46+44+β―+2=224β 50β=600
OR
Assume that the coordinates of P and Q are (x0β,y0β) and (x0β+k,y0ββ41k), where x0β and y0β are nonnegative integers such that 41x0β+y0β=2009, and k is a positive integer. Then the area of β³OPQ is the absolute value of
Thus the area is an integer if and only if k is a positive even integer. The points Piβ with coordinates (i,2009β41i),0β€iβ€49, represent exactly the points with nonnegative integer coordinates that lie on the line with equation 41x+y=2009. There are 50 such points. The pairs of points (Piβ,Pjβ) with jβi even and j>i are in one-to-one correspondence with the triangles OPQ having integer area. Thus jβi=2p,1β€pβ€24 and for each possible value of p, there are 50β2p pairs of points (Piβ,Pjβ) meeting the conditions that Piβ and Pjβ are points on 41x+y=2009 with jβi even and j>i. Thus the number of such pairs and the number of triangles OPQ with integer area is