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