I want to generate a list of $L$ and $S$ according to the following rule:
upon each iteration, replace
- $S \rightarrow L$
- $L \rightarrow LS$
Such that, starting with $L$:
$ L \rightarrow LS \rightarrow LSL \rightarrow LSLLS \rightarrow LSLLSLSL \rightarrow LSLLSLSLLSLLS \rightarrow \dots$
How can I automate this with Mathematica? I just want to specify the starting letter and the number of iteration and I'd want it to spit out the final result.