MPhils or Masters by Research in Germany in a mathematical subject
Most master’s degrees in Germany require a thesis in some form, usually comprising the final semester of studies. However, because of the Bologna process, there are unlikely to be “pure research” programs.