Assignment 1
Monica Kozbial
September 5, 2014
Problem 1. Prove or disprove: If A = {0
n
1
n
|n N}, then A
= A
Proof by counterexample:
C = {0101, 1001} A
C A
A
A
A
= A
The statement is false.
Problem 2. Prove or disprove: If B = {x {0, 1}
= B.
Proof: B = {x {0, 1}
= B.
By denition B B
since
B
i=0
B
i
= B B
2
B
3
...
Let x B
k=1
1
k
2
2
1
n
Base case: n = 1
1
k=1
1
k
2
=
1
1
2
= 1 2
1
1
= 1
Assume that statement is true for all n > 0 n Z.
Proof for n + 1 where n > 0
n+1
k=1
1
k
2
=
n
k=1
1
k
2
+
1
n + 1
2
2
1
n
+
1
n + 1
2
1
Monica Kozbial CS331 HW1
2
1
n
+
1
n + 1
2
= (2
1
n + 1
) + (
1
n + 1
2
1
n(n + 1)
) 2
1
n + 1
Therefore
n+1
k=1
1
k
2
2
1
n + 1
The statement is true for all n > 0 n Z.
Problem 4. Prove: For every language A, A
= A
.
By denition A
i=0
(A
)
i
= A
A
2
A
3
...
Let x A
)
n
(A
)
n
= A
i
1
+A
i
2
+...A
i
n
= A
j
Where j = i
1
+i
2
+... +i
n
and i
k
from 1 to n N
Since each i N, j N, A
j
A
= A
then
= T
S T.
Proof by counterexample:
Assume that:
S = {0, 1}
T = {00, 01, 10, 11}
Then
S T S
= T
such that S
= T
and {0, 1} S T
S = {0, 1}
T = {0, 1, 00, 01, 10, 11}
Done.
Problem 7. Dene an (innite) binary symbol s {0, 1}
such that ww s.
Prove: If the bits of a string s {0, 1}
||w| > m ww s]
Prob[w {0, 1}
||w| > m ww s]
m
i=1
Prob[w {0, 1}
||w| = i ww s]
m
i=1
Prob[w {0, 1}
||w| = i ww s]
This sum is bounded by 2
m
Since this statement is true for all m,
Prob[s is prex-repetitive] lim
m
2
m
= 0
The statement is true.
Problem 8.
Let S {0, 1}
Such that wT = S.
Let S {0, 1}