Conversation so far:
What University did Gottlob Frege attend?
Gottlob Frege matriculated at the University of Jena in the spring of 1869
What did Gottlob Frege study at the University of Jena?
In the four semesters of his studies Gottlob Frege attended approximately twenty courses of lectures, most of them on mathematics and physics.
Did Gottlob Frege then transfer to Gottingen after the University of Jena?
Starting in 1871, Frege continued his studies in Göttingen.

Question: What did he study at Gottingen?
Self-contained rewrite: What did Gottlob Frege study at Gottingen?