Picking Coordinates

Geometry Level 5

Triangle O A B OAB has vertices with coordinates O = ( 0 , 0 ) , A = ( 4 , 0 ) , B = ( 0 , 2 ) O=(0,0), A=(4,0), B=(0,2) . As shown in the diagram, there are 9 9 points with integer coordinates that lie either wholly inside or on the perimeter of the triangle.

Now, triangle P Q R PQR has vertices with coordinates P = ( 24 , 17 ) , Q = ( 15 , 35 ) , R = ( 100 , 169 ) P=(-24,17), Q=(15,-35), R=(100,169) . How many points with integer coordinates lie either wholly inside or on the perimeter of triangle P Q R ? PQR?


The answer is 6206.

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.

3 solutions

Mark Hennings
Jun 14, 2017

We have P Q = ( 39 52 ) Q R = ( 85 204 ) P R = ( 124 152 ) \overrightarrow{PQ} \; = \; \left(\begin{array}{c}39 \\ -52 \end{array}\right) \hspace{2cm} \overrightarrow{QR} \; =\; \left(\begin{array}{c} 85 \\ 204 \end{array}\right) \hspace{2cm} \overrightarrow{PR} \; = \; \left(\begin{array}{c} 124 \\ 152 \end{array} \right) Since the highest common factor of 39 39 and 52 -52 is 13 13 , there are 14 14 points with integer coordinates on the line segment P Q PQ , namely the points ( 24 + 3 k , 17 4 k ) (-24+3k,17-4k) for k = 0 , 1 , 2 , , 13 k = 0,1,2,\ldots,13 . Similarly, the highest common factor of 85 85 and 204 204 is 17 17 , so there are 18 18 points with integer coordinates on the line segment Q R QR , and since the highest common factor of 124 124 and 152 152 is 4 4 , there are 5 5 points with integer coordinates on the line segment P R PR . Thus there are (we have counted the triangle vertices twice) E = 14 + 18 + 5 3 = 34 E \; = \; 14 + 18 + 5 - 3 \; = \; 34 points with integer coordinates that lie on the perimeter of P Q R PQR . Since ( 39 52 0 ) ( 124 152 0 ) = ( 0 0 12376 ) \left(\begin{array}{c} 39 \\ -52 \\ 0 \end{array}\right) \; \wedge \; \left(\begin{array}{c} 124 \\ 152 \\ 0 \end{array}\right) \; = \; \left(\begin{array}{c} 0 \\ 0 \\ 12376 \end{array} \right) the triangle P Q R PQR has area 1 2 × 12376 = 6188 \tfrac12 \times 12376 = 6188 square units.

Using Pick's Theorem , there are I I points with integer coefficients lying inside the triangle P Q R PQR , where 6188 = I + 1 2 E 1 6188 \; = \; I + \tfrac12E - 1 so that I = 6172 I = 6172 . Thus there are a total of I + E = 6206 I+E = \boxed{6206} points with integer coefficients lying either inside the triangle P Q R PQR or on the perimeter of P Q R PQR .

Pick's Theorem as above:-Area=I + 1/2 E-1.
So I+E=Area+1/2
E+1=6188+1/2*34+1=6206.

Niranjan Khanderia - 3 years, 11 months ago
Miles Koumouris
Jun 16, 2017

If you construct a rectangle A R C D ARCD containing P Q R PQR with width 124 124 units and height 204 204 units, then this rectangle has 205 × 125 205\times 125 lattices points on or inside it.

Firstly, since gcd ( 85 , 204 ) = 17 \textrm{gcd}(85,204)=17 , there are 18 18 lattice points on Q R QR . Then the number of lattice points on or inside right-triangle R C Q RCQ excluding those on Q R QR is 205 × 86 18 2 \dfrac{205\times 86-18}{2} (this is obtained by reflecting C C over Q R QR , thus forming a rectangle).

Secondly, since gcd ( 39 , 52 ) = 13 \textrm{gcd}(39,52)=13 , there are 14 14 lattice points on P Q PQ . Then the number of lattice points on or inside right-triangle P D Q PDQ excluding those on P Q PQ is 40 × 53 14 2 \dfrac{40\times 53-14}{2} (obtained by reflecting D D over P Q PQ , thus forming a rectangle).

Lastly, since gcd ( 152 , 124 ) = 4 \textrm{gcd}(152,124)=4 , there are 5 5 lattice points on P R PR . Then the number of lattice points on or inside right-triangle P A R PAR excluding those on P R PR is 153 × 125 5 2 \dfrac{153\times 125-5}{2} (obtained in the aforementioned manner).

So the number of lattice points on or inside triangle P Q R PQR is 205 × 125 205 × 86 18 2 40 × 53 14 2 153 × 125 5 2 = 6206 . 205\times 125-\dfrac{205\times 86-18}{2}-\dfrac{40\times 53-14}{2}-\dfrac{153\times 125-5}{2}=\boxed{6206}.

Note that this solution is more inefficient, but does not use Pick's Theorem.

Well comparing what is going on in the triangle and what is going on in a surrounding rectangle and some associated right-angled triangles is one of the ways of proving Pick's Theorem...

Mark Hennings - 3 years, 11 months ago

Yes - the solution is doing a similar thing. It's just that the formula for Pick's Theorem is not required.

Miles Koumouris - 3 years, 11 months ago

This is what I did, I'll have to read up on the theorem, it looks cool.

Dan Ley - 3 years, 11 months ago
Nicola Mignoni
Sep 19, 2018

Let's draw the lines passing through the vertices of the rectangle, namely

y P R = 38 x 31 + 1439 31 y P Q = 4 x 3 15 y Q R = 12 x 5 71 \displaystyle y_{PR}=\frac{38x}{31}+\frac{1439}{31} \\ \displaystyle y_{PQ}=-\frac{4x}{3}-15 \\ \displaystyle y_{QR}=\frac{12x}{5}-71

Now, let be x 0 [ 24 , 15 ] Z x_0 \in [-24,15] \subset \mathbb{Z} . The point ( x 0 , y P R ( x 0 ) ) (x_0, \lfloor y_{PR}(x_0)\rfloor ) is the point, right under ( x 0 , y P R ( x 0 ) ) (x_0, y_{PR}(x_0) ) , which coordinates are integers. Similarly, the point ( x 0 , y P R ( x 0 ) ) (x_0, \lceil y_{PR}(x_0)\rceil ) is the point, right above ( x 0 , y P R ( x 0 ) ) (x_0, y_{PR}(x_0) ) , which coordinates are, again, integers. Hence, the set A = { a = ( x , y ) x = x 0 , y P R ( x 0 ) y y P Q ( x 0 ) } Z 2 A=\{\textbf{a}=(x,y) | x=x_0, \hspace{3pt} y_{PR}(x_0) \leq y \leq y_{PQ}(x_0) \} \subset \mathbb{Z}^2 has cardinality

A = x 0 = 24 15 ( y P R ( x 0 ) y P Q ( x 0 ) + 1 ) = x 0 = 24 15 ( 38 x 0 31 + 1439 31 4 x 0 3 15 + 1 ) = 2004 \displaystyle |A|=\sum_{x_0=-24}^{15} (\lfloor y_{PR}(x_0)\rfloor-\lceil y_{PQ}(x_0)\rceil+1)=\sum_{x_0=-24}^{15} \bigg(\Bigl\lfloor \frac{38x_0}{31}+\frac{1439}{31} \Bigl\rfloor-\Bigl\lceil -\frac{4x_0}{3}-15 \Bigr\rceil+1\bigg)=2004

We do the same for x 1 [ 16 , 100 ] x_1 \in [16,100] , getting B = { b = ( x , y ) x = x 0 , y P R ( x 0 ) y y R Q ( x 0 ) } Z 2 B=\{\textbf{b}=(x,y) | x=x_0, \hspace{3pt} y_{PR}(x_0) \leq y \leq y_{RQ}(x_0) \} \subset \mathbb{Z}^2 . So,

B = x 1 = 16 100 ( y P R ( x 1 ) y R Q ( x 1 ) + 1 ) = x 1 = 16 100 ( 38 x 1 31 + 1439 31 12 x 1 5 71 + 1 ) = 4202 \displaystyle |B|=\sum_{x_1=16}^{100} (\lfloor y_{PR}(x_1)\rfloor-\lceil y_{RQ}(x_1)\rceil+1)=\sum_{x_1=16}^{100} \bigg(\Bigl\lfloor \frac{38x_1}{31}+\frac{1439}{31}\Bigl\rfloor-\Bigl\lceil \frac{12x_1}{5}-71\Bigr\rceil+1\bigg)=4202

Eventually,

A + B = 2004 + 4202 = 6206 \displaystyle |A|+|B|=2004+4202=\boxed{6206}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...