Participants: Eric Osborn (24-924-839), Lu Qiyu (25-927-120), Zhu Haochen (24-919-482)

Task 7

a)

If is divisible by any number of , it will be accepted by at least one branch of the NFA, and should also be accepted.

b)

Task 8

a)

b)

Consider a set of words with as below:

  • , , , (unaccepted)
  • , (accepted) We prove 5 states is not enough by showing that any pair of words in cannot share the same state in the automaton, by using Lemma 3.3.

We choose a pair of words :

case 1: one of the words is accepted and the other unaccepted

We can choose , such that is accepted and is unaccepted, meaning that they must have different states.

case 2: both words are unaccepted
  • for we can choose such that and
  • for we can choose such that and
  • for we can choose such that and
  • for we can choose such that and
  • for we can choose such that and
  • for we can choose such that and
case 3: both words are accepted
  • for we can choose such that and

This means all 6 words must have different states from each other. By the Myhill–Nerode theorem, has at least six distinct equivalence classes. Therefore, the automaton requires at least 6 states.