Algebraic expression for triangles within polygons

Click For Summary
The discussion focuses on calculating the probability that a triangle formed by vertices of a polygon with n sides shares at least one side with the polygon. The sample space for selecting triangles is represented by nC3, while the challenge lies in determining the number of triangles that meet the criteria of sharing at least one side. Two main approaches are discussed: one involves counting triangles that share exactly one or two sides, leading to the formula n(n-2) for those cases. The conversation highlights the complexity of counting unique triangles that do not share any sides, suggesting that sketching polygons may aid in understanding the problem. Ultimately, the goal is to derive a clear algebraic expression for the probability based on the number of sides in the polygon.
elementbrdr
Messages
43
Reaction score
0

Homework Statement

If a polygon has n>=4 sides, what is the probability, in terms of n, that a triangle made up of vertices of the polygon shares at least one side with the polygon.



Homework Equations





The Attempt at a Solution

Treating vertices of polygons as possible outcomes from which 3 are chosen: Sample space S = nC3. I can't figure out how to express the number of outcomes within event E={number of triangles sharing at least one side with polygon}. My way of thinking about it is that values in E will be all combinations that contain at least a pair of consecutive numbers (which, since they represent vertices of the polgon, constitute a side of both the polygon and the triangle). Unfortunately, I can't come up with a way to express this algebraically. It may not even be the right approach.

Thanks for any help/advice.
 
Physics news on Phys.org
I think you are on the right track. nC3 appears to the number of unique triangles that can be constructed.

When it comes to determining those which share no common side ...

consider any particular side, and you can immediately rule out two of the remaining points for vertices of your triangle because a line drawn to those would be common to the polygon. Sketching a few polygons might help with generalising the formula.
 
Last edited:
Here are my thoughts using your suggested strategy:

The number of unique triangles sharing no common edge with polygon = n(n-3)(n-?). This is because there are n possible polygon vertices to choose for the first triangle vertex. The next triangle vertex cannot be the first vertex (-1) and cannot be an adjacent vertex (-2). The final vertex cannot be the first or second vertex (-2) and cannot be adjacent to either. At first glance I thought this would rule out 4 additional vertices, but that is wrong because vertices that are adjacent to two vertices selected for a triangle should only be counted once. So I can't see how to finish counting unique triangles using this strategy.

Another way of doing it is to take the union of the following events: (1) the triangle shares exactly 1 common side with the polygon and (2) the triangle shares exactly 2 common sides with the polygon. (1) can be expressed as n(n-4) because there are n sides that could be common, but 2 vertices have already been used for that side and the two polygon vertices adjacent to the selected side will be counted by event (2). Event (2) can be expressed as 2n because there are n sides of the polygon that can be used for the common side, and then there are 2 remaining vertices of the polygon that can complete the triangle. So you get 2n+n(n-4) = n(n-2). I guess you also get the same result by just taking n(n-2) to reflect using a side of the polygon for the first two vertices and then any vertex of the polygon except those contained in the selected side to complete the triangle. Either way, that results in n(n-2) / nC3
 
For everyone's information, the answer is 3!(n-3) / (n-2)(n-1). I just don't know how to get there.
 
Taking a closer look, by sketching 4,5,6,7 and 8-sided polygons I arrive at the total number of possible triangles = (n-1)(n-2)-2

A pattern for the number of triangles which don't share the polygons side is a little more taxing.
 

Similar threads

Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
8K