functions in discrete math 4588623