Number theory is a branch of mathematics which helps to study the set of positive whole numbers, say 1, 2, 3, 4, 5, 6,. . . , which are also called the set of natural numbers and sometimes called “higher arithmetic”. Number theory helps to study the relationships between different sorts of numbers.