All Exams Test series for 1 year @ ₹349 only
Question

The number of functions $f: \{1, 2, 3, 4\} \rightarrow \{a, b, c\}$, which are not onto, is:

The correct answer is
45

Problem Definition

We need to find the number of functions $f: \{1, 2, 3, 4\} \rightarrow \{a, b, c\}$ that are not onto (not surjective).

  • Domain set $A = \{1, 2, 3, 4\}$, so the size of the domain is $|A| = 4$.
  • Codomain set $B = \{a, b, c\}$, so the size of the codomain is $|B| = 3$.

Total Number of Functions

The total number of possible functions from a set of size $m$ to a set of size $n$ is $n^m$. In this case, $m = 4$ and $n = 3$. Total functions = $3^4$. $ N_{total} = 3^4 = 81 $ There are 81 possible functions from $\{1, 2, 3, 4\}$ to $\{a, b, c\}$.

Number of Onto Functions

A function is onto if every element in the codomain is mapped to by at least one element from the domain.

The number of onto functions from a set of size $m$ to a set of size $n$ can be calculated using the principle of inclusion-exclusion:

$ N_{onto} = \sum_{k=0}^{n} (-1)^k \binom{n}{k} (n-k)^m $

Substituting $m=4$ and $n=3$:

$ N_{onto} = \sum_{k=0}^{3} (-1)^k \binom{3}{k} (3-k)^4 $

Calculating the terms:

  • For $k=0$: $(-1)^0 \binom{3}{0} (3-0)^4 = 1 \cdot 1 \cdot 3^4 = 1 \cdot 81 = 81$
  • For $k=1$: $(-1)^1 \binom{3}{1} (3-1)^4 = -1 \cdot 3 \cdot 2^4 = -3 \cdot 16 = -48$
  • For $k=2$: $(-1)^2 \binom{3}{2} (3-2)^4 = 1 \cdot 3 \cdot 1^4 = 3 \cdot 1 = 3$
  • For $k=3$: $(-1)^3 \binom{3}{3} (3-3)^4 = -1 \cdot 1 \cdot 0^4 = -1 \cdot 0 = 0

Summing the terms:

$ N_{onto} = 81 - 48 + 3 - 0 = 36 $ There are 36 onto functions from $\{1, 2, 3, 4\}$ to $\{a, b, c\}$.

Number of Not Onto Functions

The number of functions that are not onto is the total number of functions minus the number of onto functions.

$ N_{\text{not onto}} = N_{total} - N_{onto} $ $ N_{\text{not onto}} = 81 - 36 $ $ N_{\text{not onto}} = 45 $ Therefore, there are 45 functions that are not onto.
Was this answer helpful?

Similar Questions

  1. The number of points of discontinuity of the function $f (x) = \left[\frac{x^2}{2}\right] - [\sqrt{x}], x \in [0,4]$, where $[.]$denotes the greatest integer function, is ________
  2. $\lim_{x \to 0} \frac{xtan 2x-2x tan x}{(1-cos2x)^2}$ equals :-
  3. Let $f(x) = \begin{cases} (x-1)^\frac{1}{2-x}, & x > 1, x \ne 2 \\ k, & x = 2 \end{cases}$ The value of k for which f is continuous at x = 2 is :

  4. The number of points in the interval $[2, 4]$, at which the function $f(x) = \left[ x^2 - x - \frac{1}{2} \right]$, where $[\cdot]$ denotes the greatest integer function, is discontinuous, is __________.
  5. Let $(2\alpha, \alpha)$ be the largest interval in which the function $f(t) = \frac{|t+1|}{t^2}, t < 0$, is strictly decreasing. Then the local maximum value of the function $g(x) = 2\log_e(x - 2) + \alpha x^2 + 4x - \alpha$, $x > 2$, is ______
  6. If $f(x) = \begin{cases} \frac{a|x| + x^2 - 2(\sin|x|)(\cos|x|)}{x} & , \ x \neq 0 \\ b & , \ x = 0 \end{cases}$ is continuous at $x = 0$, then $a + b$ is equal to
  7. Let $f(x) = \lim_{\theta \rightarrow 0} \left(\frac{\cos\pi x - x^{\left(\frac{2}{\theta}\right)}\sin(x - 1)}{1 + x^{\left(\frac{2}{\theta}\right)}(x - 1)}\right)$, $x \in \mathbf{R}$. Consider the following two statements :
    (I) $f(x)$ is discontinous at $x = 1$.
    (II) $f(x)$ is continous at $x = -1$.
    Then,
  8. The sum of all the elements in the range of $f(x) = \text{Sgn}(\sin x) + \text{Sgn}(\cos x) + \text{Sgn}(\tan x) + \text{Sgn}(\cot x)$,
    $x \neq \frac{n\pi}{2}, n \in \mathbf{Z}$, where $\text{Sgn}(t) = \begin{cases} 1, & \text{if } t > 0 \\ -1, & \text{if } t < 0 \end{cases}$, is :
  9. If the function $f(x) = \frac{e^x\left(e^{\tan x - x} - 1\right) + \log_e(\sec x + \tan x) - x}{\tan x - x}$ is continuous at $x = 0$, then the value of $f(0)$ is equal to
  10. Let $f: \mathbf{R} \to \mathbf{R}$ be a twice differentiable function such that $f''(x) > 0$ for all $x \in \mathbf{R}$ and $f'(a-1) = 0$, where $a$ is a real number. Let $g(x) = f(\tan^2 x - 2\tan x + a)$, $0 < x < \frac{\pi}{2}$.
    Consider the following two statements :
    (I) $g$ is increasing in $\left(0, \frac{\pi}{4}\right)$
    (II) $g$ is decreasing in $\left(\frac{\pi}{4}, \frac{\pi}{2}\right)$
    Then,

Important Questions from Differential Calculus

  1. The number of points of discontinuity of the function $f (x) = \left[\frac{x^2}{2}\right] - [\sqrt{x}], x \in [0,4]$, where $[.]$denotes the greatest integer function, is ________
  2. A Youtube short video is getting viral according to f(t) = −2t3 + 3t2 + 5. At what time does the video get maximum number of shares? (t is in hours)

  3. In a Mahakumbh, a drone camera is moving along 3y = x3 − 3. When y-coordinate changes 9 times as fast as x-coordinate, it captures good quality pictures. Then one of the precise positions of the drone at that instant is

  4. If \(\sqrt{x}\,\sqrt[3]{y} = (x + y)^n\) and \(x\dfrac{dy}{dx} - y = 0\), then n =

  5. If \(f(x) = \sin^{-1}\left(\dfrac{2x}{1 + x^2}\right)\), then \(f'\left(\dfrac{1}{2}\right) =\)

Need Expert Advice?
More Questions from JEE Main

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App