CSCI 1900 Lecture 16 - 3 Functions in CS mod n function – f n ( m ) = m mod n –Example f 3 ( 7 ) = 1f 3 ( 8 ) = 2f 3 ( 111 ) = 0 Factorial function –f ( n ) = n!n.