I’ve added a script which helps to understand geometric sequences.
Suppose you were to draw an equilateral triangle on a sheet of paper. It might look something like this:
Now suppose that you draw lines connecting the midpoints of each of the edges of this triangle. This will dissect the larger triangle into four smaller triangles, each of which are equilateral. Three of these smaller triangles will be oriented in the same direction as the original triangle, whereas one will not. Consider the second image below, with the three triangles with the same orientation as the original triangle numbered.
We can continue to draw lines connecting the midpoints of the edges of the marked triangles and counting the resulting triangles that have the same orientation as the original triangle and we see that a pattern emerges.
What one notices is that each time we draw a new triangle by connecting the midpoints of the marked edges, we wind up with three times the number of triangles that were in the previous picture. So (assuming we had enough space) we could draw out the figure that would be the result of doing any number of these dissections. However, if we are only interested in knowing the number of triangles that each image will contain, we can take advantage of the fact that this pattern represents a geometric sequence.
A geometric sequence is a sequence with an initial term, a_{1} and a common ration, r, where each term after the initial term is obtained by multiplying the previous term by the ratio (a_{1} cannot be zero, and r cannot be zero or one).
In a geometric sequence, if we know the first term and the ratio, we can determine the n^{th} term by the formula
a_{n} = a_{1}*r^{n – 1}
Similarly, if we know the first term and the ratio, we can determine the sum of the first n terms in a geometric sequence by the formula:
S_{n} = 

For the previous example with the triangles pointed in the same direction, we can show the results in the following table:
Drawing Number  Number of Triangles  ratio  sum number  sum value 
a_{1}  1  3  S_{1}  1 
a_{2}  3  3  S_{2}  4 
a_{3}  9  3  S_{3}  13 
a_{4}  27  3  S_{4}  40 
a_{5}  81  3  S_{5}  121 
The script is available at http://www.learninglover.com/examples.php?id=34
Other Blogs that have covered this topic:
Study Math Online
 Arithmetic Sequences (1.000)
 Fraction Arithmetic (0.322)
 Learning Math through Set Theory (0.288)
 The BreadthFirstSearch Algorithm (0.187)
 The DepthFirstSearch Algorithm (0.187)
It helps me a lot on doing my math project. But, how many terms are there in this equilateral triangles?