The first four terms of a sequence are \text{3, -6, 12, -24}. Write an explicit formula for this sequence, where n is any term number and a\left(n\right) is the nth term