Consider the two functions on integers f3
and f5
, such that
f3 x = x/2
when x
is evenf3 x = 3x+1
otherwisef5 x = x/2
when x
is evenf5 x = 5x+1
otherwiseCould it be that
n
and outputs the number of steps f3(n)
takes to halt is primitive recursive, andn
and outputs whether f5(n)
diverges is general recursive?