Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

f(n) = 2n+1 if n is even, 2n-2 if n is odd (N ->N) function) Provide and impleme

ID: 3882268 • Letter: F

Question

f(n) = 2n+1 if n is even, 2n-2 if n is odd (N ->N) function)
Provide and implementation level description of a Turing machine that compute f
Give the complete transition table for the function
Give the computations of the Turing machine on 0, 11, 100 f(n) = 2n+1 if n is even, 2n-2 if n is odd (N ->N) function)
Provide and implementation level description of a Turing machine that compute f
Give the complete transition table for the function
Give the computations of the Turing machine on 0, 11, 100
Provide and implementation level description of a Turing machine that compute f
Give the complete transition table for the function
Give the computations of the Turing machine on 0, 11, 100

Explanation / Answer

The function f is defined for all positive integers n > 4 as f(n) = 3n – 9 if n is odd and f(n) = 2n – 7 if n is even. What is the value of the positive integer a?

(1) f(f(a)) = a

(2) f(f(f(a))) is odd.