What is the largest integer n such that some regular n -gon has vertices whose coordinates are all pairs of integers?
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.
Cos (2pi/n) isn't irrational for n=6
Well, sin or cos it's irrational. But why (how do you prove it)?
This is the same as finding rational values for T a n ( n 2 π ) where n is an integer. Only the square makes it.
"The acute angles in a right triangle with rational side lengths are never rational multiples of π "
Edit: Okay, for the more general case of any regular polygon of n sides having its vertices of integer coordinates anywhere in an integer lattice, we note that:
1) If all the vertices have integer or rational coordinates, then by the Shoelace Theorem, the area of the polygon is rational
2) If all the vertices of the
regular
n-polygon have rational coordinates, then its center has rational coordinates (which is the arithmetic average of all of the vertices)
3) Likewise, the midpoints between adjacent vertices have rational coordinates
4) The distances between the center and any of the vertices, between the center and any of the midpoints, and the between any vertex with the nearest midpoint can be expressed as
a
, where
a
is some rational number
5) The area of the right triangle formed by the center, any one of the vertices, and any of its nearest midpoints can be expressed as follows
Area= 2 1 r S i n ( 2 1 n 2 π ) r C o s ( 2 1 n 2 π ) = 4 1 r 2 S i n ( n 2 π )
6) Since
r
can be expressed as the square root of a rational number,
r
2
is a rational number
7) Hence, in order for the area to be rational, the expression
S i n ( n 2 π )
has to be rational
8) The only non-trivial integer values for
n
which yields such rational numbers is
n
=
4
, which corresponds with a square
May I know why should tan ( 2 π / n ) be a rational number in the first place?
Log in to reply
Didn't you just answer that?
Log in to reply
Mine was cosine of (2pi/n), not tangent of (2pi/n). I'm not sure if you applied another technique that is different from mine.
Log in to reply
@Pi Han Goh – Oh, I hadn't started on any rigorous explanation or proof, I only pointed out that for all integer n , only n = 0 , 1 , 8 yields a rational T a n ( n 2 π ) . A full proof isn't a trivial exercise. What's less trivial is the matter of yielding algebraic numbers, when most all the time it's transcendental.
Maybe you are thinking why I am using the Tangent function instead of the Cosine. Well, the ArcTangent of the slope is an angle, which is an integer fraction of the full circle. One can equally approach this with the assumption that the radius of the circumscribing circle is 1 , and then we use either the Sine or the Cosine function to make the argument. We can approach this problem either way with no loss of generality.
When I get time, maybe I can try posting a full proof, considering that the regular polygon can be of any size and orientation, and located anywhere on an integer lattice.
Assume that without the loss of generality the regular n -gon is centered at the origin with radius r , then it can be rotated such that it has a vertex at ( 0 , r ) . Moving anticlockwise, the next vertex is at r ( cos θ , sin θ ) , where θ = 2 π / n . Taking just the x components of these vertices, for the polygon to have integer components, both r and cos ( n 2 π ) must be integers.
For this to be true, cos θ must be rational. Using Niven's theorem, the only rational values of cos ( n π ) are 0 , ± 1 , ± 2 1 , and the corresponding θ values are 1 8 0 ∘ , 9 0 ∘ , 6 0 ∘ . Since an internal angle of 6 0 ∘ would give an irrational y component (following the same argument as above, a regular n -gon with integer vertices must have an internal angle of 1 8 0 ∘ or 9 0 ∘ , or a regular 4 -gon or a trivial 2 -gon.
One cannot assume without the loss of generality that the origin is the center, nor that it can be rotated so that the coordinates remain integers. To see that, consider these two simple examples:
A square with corner points ( 1 , 2 ) , ( 4 , 2 ) , ( 4 , 5 ) , ( 1 , 5 ) . Translating it so that it is centered at the origin would make the coordinates ( ± 2 5 , ± 2 5 ) , which are not integers.
A square with corner points ( ± 1 , ± 1 ) , while centered at the origin, has radius 2 , which is not an integer.
Log in to reply
Oh curses. Let me see how to fix this....
I guess there's no way to salvage this solution, right?
(I've thought about fixing this for over a week now.... )
Log in to reply
Nah, I'd go with the dot product method. That removes the headache.
If it is any consolation, my first approach to a solution was the same as yours. The problem with the origin at the center is easily solved; we can freely scale everything by a rational factor without loss of generality. But the rotation is not so easily justified.
Log in to reply
@Arjen Vreugdenhil – Thank you!!!
I assume you're a tutor/professor. I'm grateful to have users like you on this site. Can you please recruit/introduce more academics like you to this site?
May I confirm why "loss of generality" cannot be assumed? In the 5/2 solutions, the x- and y-values can be multiplied by 2 to make it integral. The problem did not require integral/rational radii. The problem only required that at least one regular n-gon exists with integral coordinates.
Log in to reply
The radius r being integral was essential for the argument of @Pi Han Goh ; an argument which, as he agreed, turns out to be incorrect. I would agree that a rational radius is not essential for a solution, as my example of a square makes clear.
Log in to reply
@Arjen Vreugdenhil – I now understand. You meant that the square with vertices (+/-1, +/-1), when rotated, would have a vertex on (0, sqrt(2)). But the problem was only a test for existence. Having one square (of course there are more than 1) with an irrational radius does not destroy the argument.
Sorry, I still don't see what is incorrect with @Pi Han Goh 's solution. Maybe I'm coming from "Yes, rational radii are not essential. But it might be enough since the problem only checks for existence." Maybe his/her (sorry I can't tell) solution only needs to be improved with "Changing the size of the n-gon will not change generality, provided r & cos(2pi/n) are rational"?
Also sorry for the poor formatting :(
Here's a neat and easy solution.
It's obviously not possible for pentagon or hexagon. (For example, it's easy to explicitly calculate 5th and 6th complex root of 1 and see that at least one component is irrational.)
Suppose it's possible for n-gon for n>6. Let's then take the smallest possible n-gon - the shortest possible side, length a, so that all vertices have integer coordinates. On each edge we define first and second point by going counterclockwise.
Now we just move all edges so that their first points coincide in point O (0,0). The second points of edges in new positions now form vertices of another n-gon, inscribed in a circle with centre O and radius a, and vertices still have integer coordinates. With hexagon the side would be the same as radius. But for bigger n the side is smaller.
So we found an n-gon with vertices with integer coordinates and the side <a. But that's a contradiction, as we initially choose an n-gon with the shortest possible side, the length of which we called a. QED
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Dot Product - Problem Solving
Let ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x 3 , y 3 ) be three successive points of such an n -gon. The length and direction of the sides are described by the vectors v 1 = ( x 2 − x 1 , y 2 − y 1 ) ; v 2 = ( x 3 − x 2 , y 3 − y 2 ) . Take the dot product : v 1 ⋅ v 2 = ( x 2 − x 1 ) ( x 3 − x 2 ) + ( y 2 − y 1 ) ( y 3 − y 2 ) , which is an integer. This product is equal to ℓ 2 cos θ , where θ = 2 π / n is the angle over which one turns each vertex, and ℓ is the length of each side. Now cos n 2 π = ℓ 2 v 1 ⋅ v 2 = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 ( x 2 − x 1 ) ( x 3 − x 2 ) + ( y 2 − y 1 ) ( y 3 − y 2 ) is a rational number . However, for n > 4 the cosine cos 2 π / n is irrational . Hence n ≤ 4 .