The importance of mathematics in teaching programming and preparing future IT experts is treated. In particular, algorithmic approach in mathematics and informatics, formal languages, mathematical logic, calculations and estimation, computer graphics and geometry, data analysis and processing.