Triangular probability

Three of six vertices of a regular hexagon are chosen at random. The probability that the triangle formed by the vertices is equilateral is:

Answer in decimal.


The answer is 0.1.

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.

2 solutions

Alan Guo
Dec 12, 2015

Let us name vertices clockwise P i P_i , for i = 0 , 1...6 i = 0, 1 ... 6 .

Then P 1 P 3 P 5 P_1P_3P_5 and P 2 P 4 P 6 P_2P_4P_6 are the two possible equilateral triangles.

And since there are ( 6 3 ) = 20 \binom{6}{3} = 20 combinations of triangles, 2 20 = 0.1 \frac{2}{20} = 0.1 .

great but shouldn't it be i = 0,1..5 or i = 1,2..6 ?

Li waiyip - 1 year, 10 months ago
Bill Bell
Dec 13, 2015

This calculation is remarkably slow, probably because sympy does exact calculations. Obviously it's unnecessary to do this anyway.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from sympy import *
from itertools import combinations

h=RegularPolygon(Point(0,0),1,6)

allTrianglesCount=0
equilateralTrianglesCount=0
for c in combinations(h.vertices,3):
    allTrianglesCount+=1
    angles=Triangle(*c).angles.values()
    equilateralTrianglesCount+=(angles[0]==angles[1]==angles[2])

print equilateralTrianglesCount, allTrianglesCount
print 1.*equilateralTrianglesCount/allTrianglesCount

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...