Mathematics and Algorithms