I believe this solution for this problem isn’t out there yet. There is a different standard solution based on upward and downward triangle counts:
Floor(n(n+2)(2n+1)/8)
That’s more efficient.
Process:
Consider a triangle, and join its midpoints with each other. It now becomes a triangle with 4 small triangles within it. Repeat the process within each of those smaller triangles. I did this until I had 8 rows of triangles. Then I started counting the number of triangles of each size. Size 1 is the smallest triangle, size 4 meaning its 1 big triangle with 4 smaller triangles in it, size 9 meaning it has 1 big triangle, 3 triangles of size 4, and 9 triangles of size 1. So on.
Observation of these numbers is noted as follows, with a split between upward and downward facing triangles:
(Table got sent to image section)
The reason I tabulated it and systemacally counted was because counting it with a finger on a drawn paper triangle was harder than I originally thought. I was loosing track of the counts, missing triangles, etc.
There's also a fun pattern here that I didn't pursue. The rightmost 1 in Row 1 is in column 1. Row 1 x 2 = Row 2. Now see the next column = col 1 + 1 = col 2. Row 2 Col 2 has 1.
take the rightmost 1 in row 2.
row 2 x 2 = row 4. col 3 + 1 = col 4. Again, row 4 col 4 has 1
row 3 x 2 = row 6. col 5 + 1 = col 6. Once again, row 6 col 6 has 1.
This pattern continues through the entire table shown here.
Using this table, I calculated the total number of triangles given the number of rows. I got the following sequence:
1, 5, 13, 27, 48, 78, 118, 170, ...
Differences between the numbers are recognized as follows:
4, 8, 14, 21, 30, 40, 52, ...
Differences between the differences are as follows (2nd level differences):
4, 6, 7, 9, 10, 12, ...
Differences between the 2nd level differences are as follows (3rd level differences):
2, 1, 2, 1, 2, ...
Now, it has been simplified into a series, putting it into a formula we get the total triangles in a big triangle with n rows of the smallest triangles (call this T(n)):
(Wasn’t able to type it in Reddit, put a pic instead)