Theorem (Pumping Lemma):
–Let L be a regular language, recognized by a DFA with p states.
–Let x ∈L with |x| ≥p.
–Then x can be written as x = u v w where |v| ≥1, so that for all z ≥0, uvz w ∈L.
–In fact, it is possible to subdivide x in a particular way, withthe total length of u and v being at most p: | u v | ≤p.
1)assume (ab)n bk is regular
consider x = abababaa
u =ababab
v = a
w = a
let z = 2
u (a)2w
abababaaa must also belong to L but it can't because n = k here... hence not regular
2)assume an bm is regular...
aaaabb
u = aaaa
v= b
w = b
z = 3
u (b)3w
ubbbw
aaaabbbb must also belong to language L but...it doesn't belong bcoz...here n = m...so not regular...hence answer is (d)