An integer lattice point is a point with coordinates ( n , m ) , where n and m are integers. As N ranges from 1 to 905, what is the maximum number of integer lattice points in the interior of a triangle with vertices ( 0 , 0 ) , ( N , 9 0 7 − N ) , and ( N + 1 , 9 0 7 − N − 1 ) ?
Note: The point ( 0 , 0 ) is not in the interior of any of the triangles described above.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Actually, all triangles have the same number of internal lattice points. If (m,n) is on the side (0,0) and (N, p-N), then m(p-N)=nN, that is (m+n)N = pm. Since p=907 is a prime number, N<p and 0< m+n < 2p, we must have m+n = p, so N=m and n=p-N. Therefore three vertices (0,0), (N, p-N) and (N+1, p-N-1) are the only lattice points on the boundary of the triangle.
The following claim is proved first [Pick's Theorem].
L= A - B/2 + 1
where L= number of lattice points within a triangle which has its endpoints on lattice points A= area of the triangle B= number of lattice points on the boundary lines of the triangle
Proof:-
First consider a rectangle with the end points being integer lattice points. [refer to http://postimage.org/image/9gsnwazax/ ]
Let the length and breadth of the rectangle be l and b respectively.
Then the area of the rectangle will be lb, the number of boundary points will be 2(l+b), and the number of interior points will be (l-1)(b-1).
Now, (l-1)(b-1)= lb - (l+b) + 1.
So this theorem works for a rectangle with endpoints being lattice points.
Now consider a right angled triangle with its endpoints being lattice points. [refer to http://postimage.org/image/ynb0vkz3j/ ]
Let the lengths of the sides adjacent to the right angle be p and q [p>=q]. Let the number of lattice points on the hypotenuse be k [the endpoints are not included].
Then, number of boundary points= m+n+k+1.
Now, this right angled triangle can be expressed as half of a rectangle with length p and breadth q. Then the hypotenuse will be the diagonal of this rectangle.
So, number of integer lattice points within the triangle= 1/2 * (lattice points within the rectangle - lattice points on the hypotenuse) = 1/2 * {(p-1)(q-1) - k}
Also, area of the right angled triangle= pq/2
Now, 1/2 {(p-1)(q-1) - k}= 1/2 {pq - (p+q+k+1) + 2}= pq/2 - (p+q+k+1)/2 + 1.
So this theorem works for a right angle triangle with lattice points.
Now this theorem has to be proved for a general triangle with lattice endpoints.
[refer to http://postimage.org/image/kfeq1exk3/ ]
For a triangle ABC, construct a rectangle PQRC such that the line PQ touches the point A and RQ touches B. It is easy to see that PQRC also has in integer lattice endpoints.
So, we get 3 right angled triangles:- BQA, CRB, and APC.
Let A 1 be the area of BQA. Let A 2 be the area of CRB. Let A 3 be the area of APC.
Let B 1 be the number of lattice boundary points on BQA. Let )B_2) be the number of lattice boundary points on CRB. Let B 3 be the number of lattice boundary points on APC.
Let I 1 be the number of lattice points in the interior of BQA. Let I 2 be the number of lattice points in the interior of CRB. Let I 3 be the number of lattice interior points of APC.
Let A 4 be the area of PQRC. Let B 4 be the number of lattice boundary points on ABCD. Let I 4 be the number of lattice points in the interior of PQRC.
Let A 5 be the area, B 5 be the number of lattice boundary points, and I 5 be the number of lattice points in the interior of triangle ABC.
From previously proved claims we have the following.
A 1 = I 1 + B 1 / 2 − 1 A 2 = I 2 + B 2 / 2 − 1 A 3 = I 3 + B 3 / 2 − 1 A 4 = I 4 + B 4 / 2 − 1
Now, A 5 = A 4 − A 1 − A 2 − A 3 − A 4 = I 4 − I 1 − I 2 − I 3 − ( B 1 + B 2 + B 3 + B 4 ) / 2 + 2
Now, from the figure it is clear that B 4 = B 1 + B 2 + B 3 − B 5 and I 5 = I 1 + I 2 + I 3 + I 5 + ( B 1 + B 2 + B 3 − B 4 ) / 2 − 3 [note that the corners of the triangles have been double calculated, so we have to subtract 3].
Now, solving these by a series of substitutions and simplifications, we derive that I 5 = A 5 − B 5 / 2 + 1 .
So, we can now calculate the number of integer lattice points within a triangle. The problem has been solved in the next post using this claim.
Comments and replies:
Sreejato Bhattacharya:
Sorry, there was some mistake in the links. Please delete the '%5D' at the end of each link to open them.
Calvin:
Links updated. The %5D appears because of html conventions, as you put a ] at the end of the website address, just like how appears as %20.
Your comment needed approval because it contained several links (precaution against spammers).
As a reminder, to type LaTex on the blog, it is done as $_latex code $, where the _ between $ and latex is removed. It takes a while to get used to / to remember to constantly use.
Sreejato Bhattacharya:
Let A be the point (0, 0). Let B be the point (N, 953-N), and C be the point (N+1, 953-N-1).
Then, area of triangle ABC= 1/2 * mod of 0 ( 9 5 3 − N − 9 5 3 − N + 1 ) + N ( 9 5 3 − N − 1 ) + ( N + 1 ) ( N − 9 5 3 ) square units= 953/2 square units. This is a constant independent of N.
Now slope of AB= (953-N)/N= 953/N - 1 Slope of AC= (953-N-1)/(N+1)= 953/(N+1) - 1 Slope of BC= (953-N-1-953+N)/(N+1-1)= -1
AB passes through the origin, so the equation of AB is y= 953x/N - 1 AC passes through the origin, so the equation of Ac is y= 953x/(N+1)-1
Now, L= (953 - B)/2 + 1, where L is the number of lattice points within the triangle, and B is the number of boundary points on the triangle.
Since both the difference between the abscissa and the ordinates of BC is 1, there are no lattice points on the segment BC except B and C.
L will be at its maximum when B is at its minimum.
It will be convenient to find a value for N such that AB and AC pass through no lattice points [except A and C]. But first it has to be checked if such an integer exists.
The equation of AB is y= 953x/N - 1. Note that for any point located on the segment AB, its x co-ordinate must be positive and less than N. So, 0<=x<=N. Note that the lattice point (N, 952) will always be located on AB, since x= N and y= 952 satisfy this equation. So at least one lattice point will always be present on AB [other than A and B].
It will be convenient to find a N such that AB passes through only 1 lattice point. Take any N such that g.c.d(N, 953)= 1 [note that 953 is a prime, so any number which is not a multiple of 953 should work]. Now, if x is not equal to N, x must not divide N [this is the condition for AB passing through only 1 lattice point]. Again, x is not equal to N implies that x is less than N. In simpler words, N is a prime. So for any prime N which is different from 953, AB will pass through only 1 lattice point [other than A and B].
Apply the similar arguments to AC, which imply that N+1 must be a prime different from 953.
Now, both N and N+1 are primes imply that N= 2.
Then, number of boundary points on AB= 1 [A and B are excluded] Number of boundary points on AC= 1 [A and C are excluded] The number of vertexes are 3. So, total number of boundary points= 5.
Putting this value in the equation derived from the previous claim, we get that L= (953-5)/2-1 = 473.
So, 473 is the answer.
Calvin:
This is great. The surprising fact is that all the triangles have the same number of interior lattice points, even though that initially seems unlikely / difficult to evaluate.
Try the case when the N is no longer prime. This can be slightly difficult to generalize.
Sreejato Bhattacharya:
Sorry for the previous mistake. The equations of AB and AC were wrongly calculated.
Equation of AB:- y= 953x/N - x Equation of AC:- y= 953/(N+1)- x
The minimum possible lattice points on AB has to be found. Take g.c.d(N, 953)= 1. Since 953 is a prime and N varies from 1 to 951, for all N, g.c.d(N, 953)= 1. |(0, 0) and (N, 953-N) are the two lattice points that must be present on AB. But these are the vertices of the triangle, and so they will be calculated later.
Now, the x co-ordinate of any point on the segment AB varies from 0 to N. No non-negative integer less than N except 0 and N is a multiple of N. Also since g.c.d(953, N)= 1, N does not divide 953x. So, thee are no lattice points on AB. Similarly there are no lattice points on AC.
Then, total number of boundary points= 3 [3 vertices of the triangle]
So, using the previously proved claims...
L= (953-3)/2 + 1 = 476
Sorry for the mistake...
Sreejato Bhattacharya:
The case for N not being prime...
Since N ranges from 1 to 951, N can never be a multiple of 953. Since 953 is a prime, we get that g.c.d (N, 953)= 1.
So the line AB will pass through an integer lattice point with x co-ordinate x if and only if N divides x. But if that point is located on the line segment AB, its x coordinate must be less than or equal to N. So the only possible value of x is N. Thus segment AB will pass through only 1 lattice point. Similarly AC will also pass through only 1 lattice point.
I think this is why the number of integer lattice points of all the triangles is same.
Calvin:
This particular comment is not correct. It has the right ideas, but done on the wrong values.
See my earlier comment about how the mistakes he had earlier.
Calvin:
A correction was provided to the previous comment, and not this comment.
You should read through the correction and see if it makes the solution valid now.
Calvin:
I think this is a good question for students to read through the solution, and see if they agree or disagree with the entire proof. They have to keep track of various details and approaches used.
Problem Loading...
Note Loading...
Set Loading...
Taking the two points not on the origin as the base of the triangle, we see that regardless of N , the length of the base is 2 and the altitude is 9 0 7 / 2 , so the area of the triangle is always 2 9 0 7 . By Pick's theorem, the number of interior points is 2 9 0 9 − 2 b , where b is the number of lattice points on the boundary. We thus wish to minimize b : it must be at least 3 for the corner vertices. It would suffice to find a value of N for which b = 3 , that is there are no lattice points on the interior of any edge; in this case we'll have 4 5 3 interior points. One suitable value is N = 4 5 3 : then the corners of the triangle are ( 0 , 0 ) , ( 4 5 3 , 4 5 4 ) , ( 4 5 4 , 4 5 3 ) . It's easy to see that 4 5 3 and 4 5 4 are coprime, hence avoiding lattice points inside the two long edges, while the short edge is too short to ever admit internal lattice points.