GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 1.3

A prime number of functions

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 1996 paper

GATE 1996, Q1.3 1 mark · MCQ
Report issue

Sets, Relations & Functions

Question 1.3, GATE 1996: Exactly 97 functions exist from X to Y. Determine the finite cardinalities of X and Y.
Tap to enlarge
Your answer
Answer & solution

Answer: A: |X|=1, |Y|=97 (no official key was published)

If |X|=m and |Y|=n, each of the m arguments independently chooses one of n images, yielding nm functions. Here nm=97. Since 97 is prime, it cannot be an integer power with exponent at least two and base greater than one. Hence m=1 and n=97. An empty domain gives exactly one function, and an empty codomain cannot give 97 functions. This also explains why reversing the two cardinalities would give only one function.

Original paper, page 1