While reading a pdf Arabic math book, counting chapter, I found this question:
It says:
The points $(0,0),(0,3),(4,0)$ are jointed to each other. Also, the points:
$(0,1),(0,2),(0.8,2.4),(1,0),(1.6,1.8),(2,0),(2.4,1.2),(3,0),(3.2,0.6)$ are jointed to each other and to the vertices of the $3-4-5-$triangle. What is the total number of triangle? (Note: All triangles must be considered).
I tried to use simple formulas of counting triangles in simple shapes, like the big triangle is divided by joining a straight line from a vertex to the opposite side, we just count the number of bases on the divided side, we apply the formula $N=n(n+1)/2$. Also for adjacent equilateral triangles we can use the formula $N=n(n+2)(2n+2)/8$ and then we round down, where $n$ is the number triangles on one side of the big one, .... and some other simple shapes. I tried to combine some of the together, but noway.
What I knew about the given points is to make fixed total number of triangles. Moving a point slightly may change the answer. THERE ARE SMALL TRIANGLES!
But this one is so complected, and without calculation, I think the total number of triangles is so large number. Maybe it is okay to keep the answer in a form containing factorials or $^aC_b$ or or $^aP_b$ such forms. I am not sure how to begin.
If the vertices of the triangles that to be counted lie on the boundaries of the $3-4-5-$triangle, then this is:
$$^{12}C_3-^6C_3-^5C_3-^4C_3=186$$
But this is not the case, the required is to find the total number of possible triangles in the figure. Note: listing the coordinates implies an interest in the tiny triangles. Also, note that: because of these particular given coordinates, we have some intersection points of $3$ lines, and some of only $2$ lines, resulting some tiny triangles to be considered.
EDIT:
Here is a big figure, I used desmos to make it:
Any help would be really appreciated. THANKS!







This is not very elegant, but might be improved. I will describe the really primitive version. Any triangle will have one side that joins the x-axis to the y-axis, one that joins the x-axis to the hypotenuse, and one that joins the y-axis to the hypotenuse. We can choose one vertex from each side in fewer that 3x4x5=60 ways, and the three lines corresponding to each choice of triple all have rather simple equations that can be put into the form $a_ix+b_iy=1$ We lose the opportunity to make a triangle if the lines have a common point and this happens if $$det\begin{pmatrix}a_1&b_1& 1\\a_2&b_2&1\\a_3&b_3&1\end{pmatrix}=0$$ All of the algebra could be done using fractional arithmetic, leaving the answer in no doubt.
ADDED The problem does not change if the triangle undergoes an affine transformation. Let new vertices be placed at (0,0),(1,0),(0,1). Then the points on the triangle are the three sets $$A:[(0,1/3),(0,2/3),(0,1)]\\ B:[(0,0),(1/4,0),(1/2,0),(3/4,0)]\\ C:[(1,0),(4/5,1/5),(3/5,2/5),(2/5,3/5),(1/5,4/5)] $$ Then we choose one point each from A and B, and find the line joining them. Say this line has the class AB. Then take one point each from B and C and join them (line of class BC), next one point each from C and A (line of class CA). In this way we produce all the lines in your diagram. Choosing one line from each class will find all possible triangles, unless the determinant vanishes.