The apprenticeship of a mathematician