Solution:
Answer: 341
Let an denote the number of adjacent pairs of letters that are the same after n minutes, and bn the number of adjacent pairs that are different.
Lemma 1. an=bn−1 for all n≥0.
Proof. Any adjacent pair of identical letters XX at stage n either came from the same letter of stage n−1 (W→XX), or two adjacent letters of stage n−1 (VW→MXXN). Because A→AB and B→BA, they cannot have come from the same letter.
If they came from a pair of adjacent letters, then observing what each adjacent pair of letters results in in the next minute,
AA→ABABAB→ABBABA→BAABBB→BABA
we see that our adjacent pair VW must have been AB or BA. The number of such pairs is precisely bn−1.
From the relation an+bn=2n−1 for all n≥0, we obtain the recurrence relation
an=2n−1−1−an−1
from which we obtain values a0=0,a1=0,a2=1,a3=2,a4=5,a5=10,a6=21,a7=42, a8=85,a9=170, and a10=341.