The number of functions from an m element set to an n element set is A. m + n B. m^n C. n^m D. m * n

GATE 1998 · Discrete Mathematics · Functions · easy

Answer: n^m

  1. Apply the product rule for independent choices: There are m domain elements. For each, there are n codomain choices. By the product rule, total functions = n * n * ... * n (m times) = n^m.