A
ternary string
is a string made up of 0's, 1's. and 2's. How many ternary strings of length are there?
Number of -digit ternary strings =