Addendum added to respond to the comment question of Franklin.
I think that Inclusion - Exclusion should be used here. See this article for an
introduction to Inclusion-Exclusion.
Then, see this answer for an explanation of and justification for the Inclusion-Exclusion formula.
Using the syntax of the second link, let $S$ denote the set of all of the possible words that can be formed.
Then, Let $S_A$ denote the set of all of the possible words that can be formed that do not contain the letter A.
Define $S_B$ and $S_C$ similarly.
Then, the desired computation is
$$|S| - |S_A \cup S_B \cup S_C|. \tag1 $$
$|S| = 3^6,$ because there are $3$ choices for each of the $6$ letter-positions.
By Inclusion-Exclusion Theory, you have that
$$|S_A \cup S_B \cup S_C|$$
$$= |S_A| + |S_B| + |S_C|$$
$$- \left( ~|S_A \cap S_B| + |S_A \cap S_C| + |S_B \cap S_C| ~\right)$$
$$= (3 \times 2^6) - (3 \times 1^6).$$
Therefore, the overall enumeration is
$$3^6 - \left[3 \times 2^6\right] + \left[3 \times 1^6\right].$$
Addendum
Responding to the comment question of Franklin.
where is my solution going wrong?
You are mismanaging the situation where only one letter is used. The easiest way to see this is to
regard the computation of $~\displaystyle \binom{3}{1}~$ as actually representing the union of three sets.
The set consisting of the single word AAAAAA
The set consisting of the single word BBBBBB
The set consisting of the single word CCCCCC
For simplicity, I will examine the specific set containing the single word AAAAAA. The consideration of the other two words will be similar.
The idea is that this specific unsatisfactory word, AAAAAA should be deducted once overall.
It is actually deducted twice:
- Once in the computation of $|S_B|$.
- Once in the computation of $|S_C|$.
Then, it is added back once, in the computation of $|S_B \cap S_C|$. So, the net effect is that it is deducted twice and then added back once.
This type of analysis is the backbone of Inclusion Exclusion. In order to have a deeper, more confident understanding of Inclusion-Exclusion theory, you need to study the two Inclusion Exclusion links that I provided at the start of my answer, more closely.