Notation for expressing generalization over two types of sequences

19 Views Asked by At

I am working with sequences that have in their range two objects $a$ and $b$. In some cases, these sequences contain the two terms once each, $( a, b )$. In other cases, there are an undefined number of repetitions of each object, $( a_1,…, b_n )$. How could I express a generalization over these possibilities? I want to express that a sequence could be $( a, b )$ with length 2 or $( a_1,…, b_n )$ with undefined length. I have read several introductions to the topic, but have been unable to find an answer. Is there a notation for this?