A sequnce can be generated by usin an=3a (n-1) where a1=6 and n is a whole number greater that 1. What are the first four terms of the sequence?

To generate the sequence, we can use the formula given:

an = 3 * a(n-1)

We know that a1 = 6, so we substitute the values into the formula to find the second term:

a2 = 3 * a(2-1)
= 3 * a1
= 3 * 6
= 18

To find the third term, we substitute the values into the formula again:

a3 = 3 * a(3-1)
= 3 * a2
= 3 * 18
= 54

Finally, to find the fourth term:

a4 = 3 * a(4-1)
= 3 * a3
= 3 * 54
= 162

Therefore, the first four terms of the sequence are: 6, 18, 54, 162.