Discrete Mathematics with Applications 4th Edition

Published by Cengage Learning
ISBN 10: 0-49539-132-8
ISBN 13: 978-0-49539-132-6

Chapter 5 - Sequences, Mathematical Induction, and Recursion - Exercise Set 5.9 - Page 335: 18

Answer

See explanation

Work Step by Step

Below is a standard recursive definition for the set of all strings over \(\{a,b\}\) that contain **exactly one** \(a\). Let us call this set \(S\). --- ## **Recursive Definition** 1. **Base Case** \[ a \in S. \] (The one‐letter string \(a\) clearly has exactly one \(a\).) 2. **Recursive Step** If \(x \in S\), then \[ b x \in S \quad\text{and}\quad x b \in S. \] Appending a \(b\) on either side of a string with exactly one \(a\) does not change the number of \(a\) s. 3. **Restriction** No other strings are in \(S\) except those obtained from the base case by finitely many applications of the recursive step. In words: - We start with the string \(a\). - We can insert the letter \(b\) on the left or on the right as many times as we like. - We do **not** allow adding any additional \(a\) s; that ensures we never exceed one \(a\). Hence, \(S\) ends up being exactly all strings of the form \(b^m a\,b^n\), where \(m,n\) are nonnegative integers—i.e., precisely those strings containing exactly one \(a\).
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.