I'm trying to answer the third part to the following question:
I have drawn the following state diagram:
According to the solution, the machine "adds 1 to a binary number with its least significant bit in the leftmost position on the tape". I am unsure what this means and can't see why it is the case.
With input 111, the Turing machine outputs 0001. In this case, the solution mentioned above would imply that the machine adds 1 to 111 since its least significant bit, 1 (?), is in the leftmost position on the tape. However this would give 1000. If the solution is correct then it must imply 000 +1 but I don't see how this is the case?
How do I reason about this Turing machine?