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

To find the first four terms of the sequence, we can use the recursive formula given. Starting with the initial condition a1 = 6, we can generate the rest of the sequence as follows:

a2 = 3a(2-1) = 3a1 = 3(6) = 18
a3 = 3a(3-1) = 3a2 = 3(18) = 54
a4 = 3a(4-1) = 3a3 = 3(54) = 162

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