Successor function
In mathematics, the successor function or successor operation is a primitive recursive function S such that S(n) = n+1 for each natural number n. For example, S(1) = 2 and S(2) = 3.
The successor function is used in the Peano axioms which define the natural numbers. As such, it is not defined by addition, but rather is used to define all natural numbers beyond 0, as well as addition. For example, 1 is defined to be S(0), and addition on natural numbers is defined recursively by: