I think the problem is in the very last part: otherwise reject.
According to the basics of a countable set , any vector space over a countable set is considered countable. In your case, you have a vector space over integers n , which is countable. Thus, your set of integers is countable, and so you can try each combination of them. (That is, not missing any combination.)
It is also possible to calculate the result of p on a given set of inputs.
And the inclusion of a receiving state when p is 0 is also possible.
However, since there are an infinite number of input vectors, you can never reject input. Therefore, no Turing machine can follow all the rules defined in the question. Without this last rule, it is possible.
source share