I'm solving a complex task using turing machines. To solve it, my idea was to use a turing machine, that would count decimal numbers, one digit per one place on the tape (# 1 #, # 2 #, ..., # 9 9 #, ...) . But as my knowledge of turing machines is limited, I can't figure out how it could do it or if it's even possible.
So my question is: Is it possible? If so, could you provide just a basic idea of how it'd work? Thanks!
You can describe a generic TM counter $M_b = (Q, \Sigma, \Gamma, \delta, q_\text{goto end}, B, F)$ for a base $b \geq 1$ with
and $\delta$ as follows
$\forall a\in\Sigma: \delta(q_\text{goto end}, a) = (q_\text{goto end}, a, R)$
$\delta(q_\text{goto end}, B) = (q_\text{inc}, B, L)$
$\forall d\in\Sigma\setminus\{b-1\}: \delta(q_\text{inc}, d) = (q_\text{done}, d+1, N)$
$\delta(q_\text{inc}, b-1) = (q_\text{inc}, 0, L)$
$\delta(q_\text{inc}, 1) = (q_\text{inc}, 1, L)$
$\delta(q_\text{inc}, B) = (q_\text{done}, 1, N)$