The Ultimate Polygon Challenge

Consider a 100 100 -sided polygon. If you join any 4 4 of the 100 100 vertices of the polygon, you get a quadrilateral.

How many quadrilaterals can be formed without including the sides of the 100 100 -sided polygon?


The answer is 3460375.

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.

5 solutions

Satyen Nabar
Feb 20, 2015

A different approach. Take a vertex of the polygon. We have 100 100 gaps around it that we must divide into 4 4 parts where each part is a length of at least 2 2 gaps.

This is equivalent to 100 4 100 - 4 = 96 96 gaps that we have to divide into 4 4 parts with length of each at least 1 1 gap.

Now we can use the Stars and Bars formula to calculate. So that's ( 95 3 ) \binom{95}{3} = 138415 138415 number of quadrilaterals for one vertex.

We must consider for 100 100 vertices but when we do that we have to adjust for the quadrilaterals repeated 4 4 times.

So the final tally is 100 4 = 25 \frac{100} { 4} = 25

25 138415 25 * 138415 = 3460375 3460375

Please be more descriptive in this solution before using stars and bars .It is difficult to make it out what you mean

space sizzlers - 6 years, 3 months ago

Log in to reply

Suppose you have to distribute 9 candies to 4 kids such that each kid gets at least 2, you can distribute in 4 ways as 2+ 2+ 2+ 3. or 2+3+2+2 or 2+2+ 3+2 or 3+2+2+2.

This is equivalent to distributing 9-4 = 5 candies to 4 kids such that each gets at least 1. Again 4 ways --- 2+1+1+1 or 1+2+1+1 or 1+1+2+1 or 1+1+1+2...

Satyen Nabar - 6 years, 3 months ago

Log in to reply

Thank you satyan I just got it .

space sizzlers - 6 years, 3 months ago

Still not clear.. what do you mean by 100 gaps?

Apoorva Singal - 5 years, 1 month ago

Log in to reply

In 100-sided polygon, when you erase the sides of the polygon you will get 100 gaps. You are erasing the sides as you don't want those sides as the problem states

Abhisek Panigrahi - 3 years, 8 months ago

Why not 100C4? I still didn't get the repetition.

Yoga Nugraha - 4 years, 10 months ago

Log in to reply

You have to exclude points that are adjacent to each other.

Hans Gabriel Daduya - 3 years, 6 months ago

I believe this analysis is flawed in more than one way. The solution presumes that the 4 vertices must be taken in the same order as those of the 100gon. But, for instance, the set of vertices {11, 22, 33, 44} yields not one but three distinct quadrilaterals [11, 22, 33, 44], [11, 33, 22, 44] and [11, 22, 44, 33]. Also, we can use one or even two pairs of adjacent vertices, such as {1, 2, 50, 51}. The quadrilateral [1, 50, 2, 51] is a valid solution. Its edges are (1,50), (50,2), (2,51) and (51,1). None of these is an edge of the 100gon. So the set of 4 vertices {1, 2, 50, 51} gives a solution not included in the 3460375. So, my count is: For each of 100 choices of vertex A, there are 97 possible vertex B, as it cannot be adjacent to A. For each of these, there are 96 possible vertex C as it cannot be adjacent to B. But it can be adjacent to A. For the 94 cases where vertex C is not adjacent to vertex A, there are 93 possible vertex D. For the 2 cases where vertex C is adjacent to vertex A, there are 95 possible vertex D. We must eliminate cyclic permutations as quadrilateral ABCD is the same as BCDA: divide by 4 as any of the vertices can be considered as vertex A, and divide by 2 as the quadrilateral ABCD is identical to ADCB. Putting this all together, I get 100 x 97 x (94 x 93 + 2 x 95) /8 I make this 10830050.

Chris Taylor - 4 years, 9 months ago

Log in to reply

I think the problem should be rewritten to indicate to consider only simple quadrilaterals, because it says "If you join any of the vertices of the polygon, you get a quadrilateral.", so it would seem that the problem is considering non-simple quadrilaterals also.

Oscar Flores - 4 years, 1 month ago

Indeed all but Chris assume /convex/ quadrilaterals, but it is not explicitly specified.

Ron van den Burg - 3 years, 9 months ago

Couln't we have a more general formula as \frac{n(n-5)(n-6)(n-7)}{24}

Hans Gabriel Daduya - 3 years, 6 months ago

I dont understand the 100/4 part, how did you come to know that you are dividing by 4?

Mr. Krabs - 2 months, 4 weeks ago
Oscar Flores
Apr 17, 2017

First let's count the number of quadrilaterals that can be formed from a single vertex. Let's pick a vertex and name it 1. Once we've defined the first vertex, the others can be named 2,3,..100.

Each formed quadrilateral will be indicated as an ordered quadruple ( 1 , x , y , z ) \left(1, x, y, z\right) . We need to count how many of those quadruples that correctly represents a quadrilateral exist, which we can do in the following way: we can establish a 1-1 correspondence from ( 1 , a , b , c ) (1,a,b,c) (with 1 < a < b < c 1<a<b<c ) to ( 1 , a + 1 , b + 2 , c + 3 ) (1,a+1,b+2,c+3) , where, if c + 3 99 c+3\leq 99 , the transformed quadruple only has non-adjacent vertexes that form the quadrilaterals we want. So, all we have to do is count in how many ways we can choose the 3 different numbers a a , b b and c c , which range from 2 2 to 96 96 . This can be done in ( 95 3 ) \binom{95}{3} ways.

Now, if we were to draw all the possible quadrilaterals from each vertex, we will have to draw 100 ( 95 3 ) 100\cdot\binom{95}{3} quadrilaterals, where we are repeating each quadrilateral 4 4 times, because it was drawn one time for each of its 4 4 vertexes. We conclude that the number of quadrilaterals that can be formed is 1 4 100 ( 95 3 ) = 3460375 \frac{1}{4}\cdot100\cdot\binom{95}{3} =3460375

There are not enough conditions given. Assumptions are that it is a convex polygon. If it is concave, then the solution is not that trivial, because some of the quadrilaterals could be excluded as one or more of polygon's sides may coincide with the quadrilateral's side thus making it practically impossible to solve without computer assistance. Ephraim Lior, 73, NY

Ephraim Lior - 3 years, 1 month ago
Rajen Kapur
Feb 20, 2015

WLOG pick a vertex of 100 sided polygon. Leaving aside neighboring two out of remaining 97 any three can be selected but not contiguous ones, in 95C3 ways = 138415. Now there are 100 times such quadrilaterals each having 4 vertices hence multiple counts to be removed by multiplying this combination with (100/4) = 25. Answer: 138415 x 25 = 3460375

Take four number in ascending order a , b , c , d a,b,c,d which represent the number of vertices. If we transform it into the couple a , b + 1 , c + 2 , d + 3 a,b+1,c+2,d+3 we will be almost sure that there is no pair of the closest vertices. So, since we have 100 100 vertices we have to be sure that a > = 1 a>=1 and d + 3 < = 100 d+3<=100 . Therefore, we can choose ( 97 4 ) \binom{97}{4} .

However, if we have the pair a = 1 , d = 97 a=1, d=97 than we have an edge between the vertices 1 1 and 100 100 . Therefore we have to exclude all of them. Using the same logic we can see that we can chose from the range b + 1 > = 3 b+1>=3 and c + 2 < = 98 c+2<=98 therfore, b , c [ 2 ; 96 ] b,c \in [2;96] and the total number of such quadrilaterals is ( 95 2 ) \binom{95}{2} .

The answer is ( 97 4 ) ( 95 2 ) = 3460375 \binom{97}{4} - \binom{95}{2}=3460375

Fadi BouKaram
Aug 26, 2019

This is a bit of deductive approach, starting from an 8-sided polygon going up. (No polygon with less than 8 sides will give a solution.) I manually counted the solutions for polygons having 8, 9, 10, and 11 sides to infer a general formula for an n-sided polygon. First, pick any vertex, count the solutions, then move to the second adjacent, irrelevant if clockwise or counterclockwise, count, and so on and so forth.

8-sided polygon: 2 2 solutions: 1 1 starting from the 1 s t 1^{st} vertex, 1 1 from the 2 n d 2^{nd} (and 0 0 from the rest.) PS: I'll show the details of these solutions in a note at the end.

9-sided polygon: 9 9 solutions: 4 4 from the 1 s t 1^{st} vertex, 4 4 from the 2 n d 2^{nd} , 1 1 from the 3 r d 3^{rd} .

10-sided polygon: 25 25 solutions: 10 10 from the 1 s t 1^{st} vertex, 10 10 from the 2 n d 2^{nd} , 4 4 from the 3 r d 3^{rd} , 1 1 from the 4 t h 4^{th} .

11-sided polygon: 55 55 solutions: 20 20 from the 1 s t 1^{st} vertex, 20 20 from the 2 n d 2^{nd} , 10 10 from the 3 r d 3^{rd} , 4 4 from the 4 t h 4^{th} , 1 1 from the 5 t h t h 5th^{th} .

I noticed that the number of polygons for the 1 s t 1^{st} vertex is always the same as that of the 2 n d 2^{nd} , and the number decreases afterwards. And these numbers correspond to binomial coefficients: 20 = ( 6 3 ) 20 = {6 \choose 3} , 10 = ( 5 2 ) 10 = {5 \choose 2} , 4 = ( 4 1 ) 4 = {4 \choose 1} , and all the parameters depend on the number of vertices of the polygon.

Let a = number of solutions

11-sided polygon: a = ( 6 3 ) + ( 6 3 ) + ( 5 2 ) + ( 4 1 ) + ( 3 0 ) = 20 + 20 + 10 + 4 + 1 = 55 a = {6 \choose 3} + {6 \choose 3} + {5 \choose 2} + {4 \choose 1} + {3 \choose 0} = 20+20+10+4+1=55

10-sided polygon: a = ( 5 2 ) + ( 5 2 ) + ( 4 1 ) + ( 3 0 ) = 10 + 10 + 4 + 1 = 25 a = {5 \choose 2} + {5 \choose 2} + {4 \choose 1} + {3 \choose 0} = 10 + 10 + 4 + 1 = 25

9-sided polygon: a = ( 4 1 ) + ( 4 1 ) + ( 3 0 ) = 4 + 4 + 1 = 9 a = {4 \choose 1} + {4 \choose 1} + {3 \choose 0} = 4 + 4 + 1 = 9

8-sided polygon: a = ( 3 0 ) + ( 3 0 ) = 1 + 1 = 2 a = {3 \choose 0} + {3 \choose 0} = 1 + 1 = 2

So if we have an n-sided polygon, we're always starting from: ( n 5 n 8 ) {n-5 \choose n-8} ,

Hence, for an n-side polygon, the solution is:

a = ( n 5 n 8 ) + ( n 5 n 8 ) + ( n 6 n 9 ) + ( n 7 n 10 ) + . . . + ( 6 3 ) + ( 5 2 ) + ( 4 1 ) + ( 3 0 ) a = {n-5 \choose n-8} + {n-5 \choose n-8} + {n-6 \choose n-9} + {n-7 \choose n-10} + ... + {6 \choose 3} + {5 \choose 2} + {4 \choose 1} + {3 \choose 0}

Rearranging: a = ( n 5 n 8 ) + [ ( 3 0 ) + ( 4 1 ) + ( 5 2 ) + ( 6 3 ) + . . . + ( n 7 n 10 ) + ( n 6 n 9 ) + ( n 5 n 8 ) ] a = {n-5 \choose n-8} + \bigg[ {3 \choose 0} + {4 \choose 1} + {5 \choose 2} + {6 \choose 3} + ... + {n-7 \choose n-10} + {n-6 \choose n-9} + {n-5 \choose n-8} \bigg]

a = ( n 5 n 8 ) + i = 0 n 8 ( 3 + i i ) a = {n-5 \choose n-8} + \sum_{i=0}^{n-8} {3+i \choose i}

And we have that: i = 0 m ( i + α i ) = ( m + α + 1 m ) \sum_{i=0}^{m} {i + \alpha \choose i} = {m + \alpha + 1 \choose m} (A corollary of the hockey stick identity).

So in our case: i = 0 n 8 ( 3 + i i ) = ( n 4 n 8 ) \sum_{i=0}^{n-8} {3+i \choose i} = {n -4 \choose n-8} .

Finally, the solution for an n-sided polygon: a = ( n 5 n 8 ) + ( n 4 n 8 ) \boxed {a = {n-5 \choose n-8} + {n -4 \choose n-8}}

For n = 100, a = ( 95 92 ) + ( 96 92 ) = 3 , 460 , 375 a = {95 \choose 92} + {96 \choose 92} = 3,460,375


Note : For the individual solutions for polygons of 8, 9, 10, and 11 sides, pick a vertex at random and label it "A", then move to an adjacent one labeling it "B", and so and and so forth. The solutions are the following (skipping the one with 11 sides due to size):

8-sided polygon:

A C E G , B D F H \scriptsize {ACEG, BDFH}

9-sided polygon:
A C E G , A C E H , A C F H , A D F H \scriptsize {ACEG, ACEH, ACFH, ADFH}

B D F H , B D F I , B D G I , B E G I \scriptsize {BDFH, BDFI, BDGI, BEGI}

C E G I \scriptsize {CEGI}

10-sided polygon:
A C E G , A C E H , A C E I , A C F H , A C F I , A C G I , A D F H , A D F I , A D G I , A E G I \scriptsize {ACEG, ACEH, ACEI, ACFH, ACFI, ACGI, ADFH, ADFI, ADGI, AEGI}

B D F H , B D F I , B D F J , B D G I , B D G J , B D H J , B E G I , B E G J , B E H J , B F H J \scriptsize {BDFH, BDFI, BDFJ, BDGI, BDGJ, BDHJ, BEGI, BEGJ, BEHJ, BFHJ}

C E G I , C E G J , C E H J , C F H J \scriptsize {CEGI, CEGJ, CEHJ, CFHJ}

D F H J \scriptsize {DFHJ}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...