Partial Recursive Functions
[13/100%]Show that the following functions are general recursive:
— factorial;
— the smallest of the arguments, ;
— the largest of the arguments, ;
diff — the absolute value of the difference;
Prove that if the function is partial recursive, then the function is also partial recursive for every permutation of the numbers .
Let be a partial recursive function, and let and be natural numbers. Prove that the function
is also partial recursive.
Show that the following functions are partial recursive:
— the integer part of the -th root of ;
;
— the number of distinct divisors of , ;
, if is a prime number, and otherwise;
— the -th prime number in increasing order, ;
— the sum of the divisors of ; take ;
— the -th digit in the base- representation of : that is, if , where , then
— the greatest common divisor of and .
A general recursive function that can be constructed without using minimization is called primitive recursive. Let the functions and be primitive recursive, , — a general recursive function, and let be majorized by the function for all . Prove that is also primitive recursive.
Prove that if the values of a general recursive function are changed on a finite set, then the resulting function is also general recursive.
Prove that from the constant 0 and the functions , using superposition and primitive recursion, one cannot obtain the function or the function . Hint. By induction on the construction of the function, prove that for all functions constructed in this way the inequality holds for arbitrary .
Let be a general recursive function that is one-to-one on . Prove that the inverse function is also general recursive, by explicitly constructing it.
Let be a general recursive function. Prove that the function
is general recursive.
Prove that if the functions and are general recursive, then the function is partial recursive.
Suppose that all pairs of natural numbers are ordered by increasing sum , and pairs with the same sum are ordered by increasing coordinate . This order looks as follows:
Let be the number of the pair in this order (we take the pair to have number 0). Then the function enumerates all pairs of natural numbers bijectively.
Prove that .
Find the inverse functions and such that the equalities hold, and hence .
Show that all these functions are general recursive.
Show that the function from Problem 281 on page 381 is general recursive. Hint. First show that the function is general recursive.
For the Ackermann function
find and for all natural numbers ;
prove that .