User blog comment:Ikosarakt1/My Turing machine programs/@comment-25418284-20130328183208/@comment-25418284-20130328184334

There are actually 22 states, but yes, 42 rules.

I think my code for duplicating the input could be improved.