Thinking sociologically with mathematics