1. Calculus This is the most basic, so you must learn it well.
2. Discrete mathematics, discrete mathematics needs many things. Of course, I can't give examples here to illustrate what to learn, because everything is very important.
3. Linear algebra, matrices in linear algebra, linear operations and so on.
4. Geometric calculation, don't think that programming is just algebraic programming. We often encounter many geometric problems, such as spatial motion, finding the volume of three-dimensional graphics and so on.
Of course, there are more mathematical knowledge that books don't have: for example, josephus problem, knapsack problem, Peak theorem and so on.
If you want to learn programming, I suggest you go to the OJ platform of Peking University or other platforms to do some problems, which will greatly improve your programming ability. This is the website of Peking University OJ Platform:
http://poj.org/problemlist