Say we can make a sequence of 2 or 4 numbers using elements 0-9. Special sequences are defined as any sequence length 2 or 4 with at least half of the numbers being the same and in a row. So 1,1 is a special sequence, 1,3 is a special sequence, 2,3,4,2 is not, 2,2,3,4 is a special sequence. How many special sequences are there?
Attempt at solution: I know that all 2 number sequences are valid, since each contains at least one of the same number in a row. So there are 10 x 10 = 100 special 2 number sequences.
For 4 number sequences, I am looking at the sequence as 4 slots, _ _ _ _.
I need to place at least two of the same number in consecutive order.
This means I can choose 1 of 10 possible numbers, and place the start of the sequence in either the first slot, second slot, or third slot. The fourth slot is not long enough to hold a two number sequence.
So, I choose, 1 of 10 numbers to be the repeated number, choose 1 of three slots to add this 2 number sequence, and fill the 2 remaining slots with any of the 10 numbers.
So, for 4 number sequences...
${10 \choose 1}$ x ${3 \choose 1}$ x 2${10 \choose 1}$
However, I realize I am double counting, because a sequence such as 1122 could be obtained by choosing 2 as the repeated element, starting the sequence in the 3rd slot, and happening to fill the other slots with 1s. This could also be obtained by choosing 1 to be the repeated element, starting the sequence of 1s in the first slot, and happening to choose 2s to fill the third and fourth slots.
How could I account for this double counting?