Skip to content
Official PYQ · 1998

GATE CS 1998 Q1.8 — Sets, Relations and Functions

Explain with AI

The number of functions from an mm element set to an nn element set is

Choose one option
View worked solution

Answer: C

To find the number of functions from a set AA with mm elements to a set BB with nn elements, we analyze the choices available for mapping each element of the domain.

Let the domain set be A={a1,a2,…,am}A = \{a_1, a_2, \dots, a_m\} and the codomain set be B={b1,b2,…,bn}B = \{b_1, b_2, \dots, b_n\}.

  • For the first element a1∈Aa_1 \in A, there are nn possible choices in BB to map to.
  • For the second element a2∈Aa_2 \in A, there are also nn possible choices in BB.
  • Similarly, for each of the mm elements in AA, there are exactly nn choices in BB.

Since the mapping of each element in the domain is independent of the others, the total number of possible functions is the product of the number of choices for each element:

n×n×⋯×n⏟m times=nm\underbrace{n \times n \times \dots \times n}_{m \text{ times}} = n^m

Therefore, the correct option is C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions