Item 1.4.11.a.

How many ternary digit strings contain exactly \(n\) digits?

in-context