Set has $3$ elements and set has $5$ elements. How many total possible functions can be defined from to ?
125
Step-by-Step Solution
This is a total functions counting question, recognisable because it asks for the number of all possible mappings from a domain to a codomain without any restrictions like "onto" or "one-to-one".
To form a function from to , each element of the domain must independently choose exactly one element from the codomain as its image.
Here, and .
- The 1st element of has $5$ choices in .
- The 2nd element of has $5$ choices in .
- The 3rd element of has $5$ choices in .
Using the product rule, the total number of functions is:
The general formula is (codomain size raised to the power of domain size).
A common trap is calculating , which would be . This reverses the base and the exponent. The base is always the number of choices available (codomain), and the exponent is the number of decisions being made (domain).