Using the Deterministic Finite Automaton (Q, Σ, Δ, q_0, F):
Alphabet: Σ is {(0 0), (0 1), (1 0), (1 1)}
Definition of Δ to strings recursively:
Δ*(q, ε) = q for all q ∈ Q
Δ*(q, xa) = Δ(Δ*(q, x), a) for all q ∈ Q, x ∈ Σ*, a ∈ Σ
Given a string, s ∈ Σ*, we define left(s) and right(s) to be the numbers represented in custom binary numbers by the reverse of the left and right rows of bits in s. For example, if
s = (1 0)(0 0)(0 1)(1 0)(0 0)(1 1)
then left(s) = n(s) = n(101001) = 19 and right(s) = n(s) = n(100100) = 16 where
$\sum_{i=1}^L s_i \bullet F_i $ where s is of length L.
and s = $s_L$$s_{L-1}$$s_{L-2}$...$s_1$ for s in n(s)
also the Fibonacci numbers start off as follows:
$F_0$ = 1
$F_1$ = 1
$F_n$ = $F_{n-1}$ + $F_{n-2}$ for n >= 2
Questions:
(a) If s is a string of length L and Δ*(A, s) = B, state a very simple arithmetic expression (in terms of L) for left(s).
(b) If s is a string of length L and Δ*(A, s) = C, state a very simple arithmetic expression (in terms of L) for left(s).
(c) Prove by induction on n: For all L >= 1, and every string s of length L, my answers to part (a) and (b) are correct.
This is a question for some homework and I have no idea where to start. For parts a and b I thought I'd use the formula for n(s) for something like this:
$\sum_{i=1}^L top(s_i) \bullet F_i $, but this formula doesn't take into account the transition from A to B or A to C. I'm not completely sure about what the expression should calculate either the string or the number?