find the number of n-digit ternary sequences that contain an odd number of 0's and an even number of 1's.