How many ternary (0, 1, 2) sequences of length 10 are there without any pair of consecutive digits the same?

Relax

Respuesta :

There are 10 spaces then the first space will be (3,1), the second one cannot be the same as the first one so it will have to be (2,1).

So it will come down to 3×2^9