### The Intersection of Mathematics and Computer Science

Mathematics is a field that can be seen everywhere in the real world. From filling up your daily glass of milk to finding the probability that you get a good hand in a game of cards, math has applications in our daily lives. Math shares intersections with other subjects, such as physics, chemistry and computer science. However, math’s involvement in computer science is quite special. Many computer science problems require algorithms to solve, which are processes taken by computers that involve logic or computations.These types of problems are usually numerical. Examples of implementations of numbers in computer science are with problems that involve modular arithmetic, which is a branch of mathematics that uses the remainder when a number is divided by another number.

One problem that involves modular arithmetic is finding all the prime numbers up to a given value. For example, if a user wanted to find all the prime numbers less than 10, the program would have to correctly list the numbers 2, 3, 5 and 7. One way to accomplish this task is to start with 1 and test all the numbers up until the input. Each test would have to involve checking whether the current number (between 1 and the input, inclusive) is divisible by any numbers less than itself besides 1. This is the definition of a prime number, and if this condition is met, then the current number would be categorized as a prime number and printed.

Computer Science problems can have other backgrounds with respect to mathematics. Some also involve a branch of mathematics known as graph theory. One such problem is finding the largest possible sum given a binary tree (or a graph that from any non-endpoint, has two immediate options leading to the end of the tree). A picture illustrating the question is below: