Q. Let and . Then the number of onto functions from to is

 1181  158 NTA AbhyasNTA Abhyas 2022 Report Error

Solution:

The number of ways to give image to each element of in is .
the total number of ways to give images to the elements of
But in two of them all the clements of E have the same image or the same image (the mapping being into in these two cases).
the number of onto functions