Can someone help me derive a recurrence relation to find the number of n-digit ternary sequences with an even number of 0's and 1's?
I know that you need to break it down into cases where the sequence starts with either a 0 OR a 1 or a 2 and based on that you determine the expression for a sequence of length n based on the subsequences of length n-1. However, I'm stuck in breaking it down into the cases and going forward from there.
Thanks for any help in advance!