Ox-words: Rules, Length & Occurrences of a & b

  • Thread starter Thread starter jammed
  • Start date Start date
  • Tags Tags
    Logic
Click For Summary
SUMMARY

The discussion focuses on the properties and construction of Ox-words, which are sequences of letters 'a' and 'b' defined by specific rules. It is established that every Ox-word has an even length, and examples of Ox-words of length 6 include 'ababab', 'abaabb', 'aabbab', and 'aababb'. The discussion also explores the relationship between the occurrences of 'a' and 'b' in Ox-words, concluding that they are necessarily equal. Additionally, a recursive expression for the number of Ox-words of length 2n, denoted as Cn, is derived based on the unique structure of Ox-words.

PREREQUISITES
  • Understanding of recursive sequences
  • Familiarity with combinatorial structures
  • Knowledge of formal language theory
  • Basic principles of mathematical induction
NEXT STEPS
  • Research recursive sequences and their applications in combinatorics
  • Study formal language theory, focusing on context-free grammars
  • Explore mathematical induction techniques for proving properties of sequences
  • Investigate the relationship between combinatorial structures and their generating functions
USEFUL FOR

Mathematicians, computer scientists, and students studying formal languages or combinatorial mathematics will benefit from this discussion, particularly those interested in sequence construction and properties.

jammed
Messages
26
Reaction score
0

Homework Statement


Ox-words are sequences of letters a and b that are constructed according to the following
rules:
I. The sequence consisting of no letters is an Ox-word.
II. If the sequence W is an Ox-word, then the sequence that begins with a, followed
by W and ending in b, written aWb, is an Ox-word.
III. If the sequences U and V are Ox-words, then the sequence U followed by V , written
UV , is an Ox-word.
All Ox-words are constructed using these rules. The length of an Ox-word is the number
of letters that occur in it. For example aabb and abab are Ox-words of length 4.
(i) Show that every Ox-word has an even length.
(ii) List all Ox-words of length 6.
(iii) Let W be an Ox-word. Is the number of occurrences of a in W necessarily equal to
the number of occurrences of b in W ? Justify your answer.
You may now assume that every Ox-word (of positive length) can be written uniquely
in the form aWbW' where W and W' are Ox-words.
(iv) For n>= 0, let Cn be the number of Ox-words of length 2n. Find an expression for
Cn+1(where n+1 = subscript) in terms of C0(where 0 = subscipt),C1(where 1 = subscript), · · · Cn (n = subscript). Explain your reasoning.


Homework Equations


no equation


The Attempt at a Solution


(i)Using rule 1 we know that there when there are no letters the word is an ox-word which means we have a word of length zero which is even no. Using rule 2 we can make a word starting with a and containing W and ending in b which will also be even as W can contain no letters or a and b. Using rule 3 then according to rule 1 and rule 2 the song U and v will also be even so every ox-word will be even.
(ii)ababab, abaabb, aabbab, aababb, aaabbb

Pls tell me how to deal with (iv) part.
 
Physics news on Phys.org
Take an Ox-word of length n. Then this word can be written as aWbW' where W and W' are unique. There are now n-2 cases:

1) W is in C0
Then W' must be in Cn-2. So the number of possible words in this case are C0.Cn-2

2) W is in C1
Then W' must be in Cn-3. So the number of possible words in this case are C1.Cn-3

3) ...


After these cases you just add up all te possible words in the separate cases.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
4K
  • · Replies 26 ·
Replies
26
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K