Why is this? I'm not necessarily interested in a full proof, but just a quick, simple explanation that makes sense as to why this is.
2 Answers
Intuitively, a set is recursive if there's a program that will take a number as input and then answer "yes" if the number is in the set and "no" if it isn't.
Similarly, a set is recursively enumerable if there's a program that will take a number as input and then answer "yes" if the number is in the set and either answer "no" or keep running forever if it isn't.
If you know that a set is recursive, thanks to some program, the very same program will also work for showing that it is recursively enumerable.
- 286,031
Say $S$ is a recursive set of natural numbers. Given $n$, you have an algorithm to decide whether $n\in S$. So construct a list of the elements of $S$ like so: If $1\in S$ then add $1$ to the list, otherwise don't. If $2\in S$ add $2$ to the list, otherwise don't. Etc. You have enumerated the elements of $S$.
- 89,985
print "yes"withhaltandprint "no"withloop forever. – hmakholm left over Monica Mar 15 '16 at 16:43