Describe the strings in the set $S$ of strings over the alphabet $\Sigma = \{a,b,c\}$ which are defined recursively by:
(1) $a$ is in $S$, and
(2) if $x$ is in $S$, then $ax$ is in S, $xb$ is in $S$ and $xc$ is in $S$.
So far I have in $S$:
a, aa, ab, ac, aaa, aab, aac, aab, abb, acb, aac, abc, acc, aaaa, aaab, aaac, aaab, aabb, aacb, aaac, aabc, aacc, aaab, aabb, aacb, aabb, abbb, acbb, aacb, abcb, accb, aaac, aabc, aacc, aabc, abbc, acbc, aacc, abcc, accc
My question really is whether or not I using the recursive definition correctly, since I can't seem to pick out a regular pattern. I'm confused because there are three definitions, $ax$, $xb$ and $xc$.
Any help is appreciated.