If you are doing mathematics, you probably should be discussing your ideas with others, even if you are the sole author of the paper. They can contribute helpful ideas, some of which are wrong and should be ignored, but some of which can save you months.
Create a novel on your own? Go for it. (Though even there, other people can contribute interesting suggestions.) But then, if you're going to publish it, you're going to run it through an editor...