Questions:
Possible answers:
Review Written Assignment 2.
def fib(n):
if (n == 0) or (n == 1):
return n
else:
return fib(n - 1) + fib(n - 2)
10001001
01110110
111
and 000
yields: 111000
The Thue sequence describes a sequence of binary strings.
Write: The Thue sequence is defined as \(T_0 = 0\) and for any \(n \geq 0\),
\[ T_{n+1} = \text{ the concatenation of } T_n \text{ and the complement of } T_n\]