In the last few years, there have been significantly fewer problems involving mathematics and number theory. I don't understand why this is happening, as there always seemed to be plenty of mathematicians in the competitive programming community. Perhaps problem-setters think that problems involving numbers have trivial code, but sometimes, using number-theoretic methods, interesting and non-trivial optimizations can be achieved.









competitive programming is much more about problem-solving than programming, and the skills you learn there translate well to math. also computer science was literally born out of mathematics, algorithms are named after al-khawarizmi, a mathematician.