Mathematician and science fiction author born in scotland who lived in the united states for most of his life