- #1
croxbearer
- 18
- 0
I don't know if you have encountered this problem in Logic and Mathematics. Anyway, you may try this:
You are given with an initial string of MI.
Here are the rules:
i) If you have a string that ends with I you can add a U
ii) If you have an Mx, (i.e., an a string that starts with an M, with other characters succeeding it) you can double the characters succeeding the M, i.e., you may lengthen your string by writing Mxx
ii) If you have an III part on your string, you may replace it with a U
iv) If you have a UU in your string, you can drop this altogether, i.e., starting with an MUUU, you can drop the UU, to get MU.
Now, the question is: Could you produce a string containing the characters, MU? (without of course trespassing the bounds of the rules)
You are given with an initial string of MI.
Here are the rules:
i) If you have a string that ends with I you can add a U
ii) If you have an Mx, (i.e., an a string that starts with an M, with other characters succeeding it) you can double the characters succeeding the M, i.e., you may lengthen your string by writing Mxx
ii) If you have an III part on your string, you may replace it with a U
iv) If you have a UU in your string, you can drop this altogether, i.e., starting with an MUUU, you can drop the UU, to get MU.
Now, the question is: Could you produce a string containing the characters, MU? (without of course trespassing the bounds of the rules)