Task.
On the tape recorded an integer. Wanted to get on tape
number that is greater than 1. For example, if we are given a number of 53, the result should be 54.
Decision.
To solve this problem we suggest the following steps:
1. Machine distilled under the last digit of the number.
2. If this is a number from 0 to 8, then replace it with the numeral 1 and to stay longer; eg:
1 9 5 7 → 1 9 5 7→1 9 5 7 → 1 9 5 7→1 9 5 8
↑ ↑ ↑ ↑ ↑
3. If this figure is 9, then change it to 0 and shift to automatic
previous digit, then increase in the same manner on the penultimate figure 1; eg:
6 4 9 → 6 4 9→6 4 9 → 6 4 0 → 6 5 0
↑ ↑ ↑ ↑ ↑
4. Special case: only nine in number (e.g., 99). Then the machine will move to the left, replacing nine to zero, and in the end will be at the empty cage. In this empty cell to be written and 1 stop (the answer is 100):
9 9 → 9 9 → 9 0 → 0 0 → 1 0 0
↑ ↑ ↑ ↑ ↑