Combinatorics & Counting

Answer & solution
Official answer: 195
Approach: Count the complement, because counting each repeated-pair position directly would count some strings multiple times.
There are three choices independently at each of five positions, so there are 35=243 strings in total. A string with no equal adjacent symbols has 3 choices for its first symbol. At each of its remaining four positions, the immediately previous symbol is forbidden and the other two are allowed. This gives 3×24=48 strings without adjacent repeats.
Every string either has an adjacent equal pair or has none, and these categories are disjoint. Subtracting the latter from the total gives 243−48=195.
For example aaaaa has four repeated-adjacency positions, but it must count as just one string. Complement counting handles such overlaps automatically. The condition is “at least one”, so strings with two, three or four equal adjacent pairs all remain included in 195.