Let's classify all the possible equilateral triangles of interest. As there are more equilateral triangles in the proof, let's call those we want to count the counting triangles.
For each of the counting triangle asked, define its enclosing triangle be the minimal upright equilateral triangle that goes alone the network. Here, upright means the triangle has one side being horizontal, and the third vertex is above the horizontal side. Later in the text, the term upside-down will appear, meaning the opposite of upright, ie. one side being horizontal but the third vertex is below the horizontal side.
For example, here are some counting triangles (red) and their enclosing triangle (blue). The second counting triangle is upside-down.
![Image1](https://camo.githubusercontent.com/1712c5536a75d359a73124f48f71a51faeb3c25f90bf581d111c8361d7ca24a8/687474703a2f2f692e696d6775722e636f6d2f326264505039782e706e67)
We classify counting triangles by the side length of its enclosing triangle, as this directly related to how many these triangles are there in the original network. If the network has side N
, we can find the number of ways