His main subject was Mathematics .
He also read widely in English literature , philosophy and history .
His main subject was Mathematics , but he also read widely in English literature , philosophy and history .