Mathematician and author known for research in number theory and accessible writing about mathematical thinking.