How many triangles in the picture?
I counted over 140 then got lost..
Is there a way to calculate the number of triangles in the picture?
140 seems like too many to me, what about
Well, maybe that's not exactly right: you have to check for yourself. But the basic idea that I want to convey is that you should try to use well known counting formulas to figure it out. In my attempt you can see, I hope, that,
, and
are meant to count all triangles of a certain type.
The answer is
EDIT: The above formula is equivalent to, actually .
To derive it , i find that all the triangles found in the figure must be constructed by at least one line passing throughand one through
. The other line ( the third line , triangle is constructed by three lines ) can only be selected in twelve lines , try it ! However , we find that every triangle has been counted twice , so let's halve it . Therefore , the number of triangles is
![]()
Counting by hand...
Starting at the bottom left-hand corner, using that corner as a vertex in each case,
there are 6 triangles with 2 vertices right next to each other on the right-hand side.
If we now choose any of the other 5 lines that emanate from the bottom right-hand vertex,
then there are 6 times as many triangles starting from the bottom left-hand vertex
that fit between two adjacent lines emanating from the bottom-left vertex.
If we start at the bottom right-hand vertex, we double this number while subtracting
the double-counted one at the base.
Next, we can count the triangles that are between 2 lines that have a single line between them
(emanating from the bottom left vertex).
There are 5(6) of these.
Double that and subtract the overlapping one and the two that overlap at the base
with triangles one space thick.
Next count the triangles with two lines in between.
There are 4(6) of these.
Double and subtract the overlap.
Then subtract the 2 that overlap with those that are 2 spaces thick.
Finally subtract the 2 that overlap with those that are one space thick.
Next count the triangles with 3 lines in between.
There are 3(6) of these.
Double and subtract the 1 overlap.
Subtract the 2 that overlap with those that have 2 lines between.
Subtract the 2 that overlap with those that have 1 line between.
Subtract the 2 that overlap with those that have no line between.
Next count the triangles with 4 lines between the outer edges.
There are 2(6) of these.
Double and subtract the 1 overlap.
Subtract 2 and 2 and 2 and 2 for the remaining overlaps.
Count the triangles with 5 lines between the edges.
There is only 1.
Total is
![]()
The mathematics is much clearer when we avoid having to subtract double-counted triangles.
Any triangle in the figure must have either X or Y as a vertex.
We can independently count
(1) triangles with Y as a vertex but not X
(2) triangles with X as a vertex but not Y
(3) triangles with both X and Y as a vertex.
With Y omitted and X as a vertex, we can form a triangle by selecting 2 of
the 6 blue points on the red line.
The number of ways to do this is
Doing the same with the other 5 lines above the red one leaving Y gives
triangles with X as vertex but not Y
There are the same number of triangles containing Y but not X.
Therefore the number of triangles containing only one of those vertices is
With both X and Y as vertices, 6 triangles can be formed on the line with the blue dots in the 2nd diagram.
The same number of triangles can be formed on the 5 lines leaving Y immediately below that.
That givestriangles that have both X and Y as vertices.
The total number of triangles is![]()