Regular Expressions & Languages

Answer & solution
Answer: D (no official key was published)
Step 1: L3 contains even-length unary strings, recognized by a two-state parity machine. Interpreting only nonnegative string lengths, negative integer parameters do not add new words.
Step 2: L1={ww} is nonregular: prefixes an b are pairwise distinguishable, since suffix an b makes a square with that prefix but not with am b for m≠n. L2={wwR} is nonregular: prefixes an b are distinguished by suffix b an; the resulting word am bb an is an even palindrome exactly when m=n.
Step 3: L4 has square unary lengths. For pumping length p, pump a nonempty segment of length k≤p in 0p². Pumping once more gives length p²+k strictly between consecutive squares p² and(p+1)², contradiction.
Therefore only L3 is regular, D.