Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am trying to prove the following statement:

If $S$ and $T$ are any regular expressions over a 1-letter alphabet and if $n$ is a natural, then the languages $(ST)^n$ and $S^nT^n$ are equal.

share|cite|improve this question
Is this homework? If so, please tag it as such. If not, please don't get insulted. – Yuval Filmus Apr 15 '11 at 0:43

1 Answer 1

Hint: Show that any two regexps over a $1$-letter alphabet commute, i.e. $PQ = QP$ for every two regexps $P,Q$.

Hint to the hint: Show that any two words over a $1$-letter alphabet commute, i.e. $ab = ba$ for every two words $a,b$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.