succ
The successor function.
Syntax

succ(n[, m[, d]])

n
is an integer 
m
is a positive integer 
d
is an integer

Description

If
n
is an integer, thensucc(n)
is the next integer, i.e.,n + 1
. 
If, in addition,
m
is a positive integer, thensucc(n, m)
is the next integer modulom
, i.e.,(n + 1) mod m
. 
If, in addition,
d
is an integer, thensucc(n, m, d)
is the next integer modulom
in the translated interval[d, d + m)
.
Examples
succ(5)
6
succ(5, 6)
0
succ(5, 4)
2
succ(5, 4, 10)
10
succ(13, 4, 10)
10