Join WhatsApp Icon JEE WhatsApp Group
Question 4

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

The set in the domain has $$4$$ elements and the set in the co-domain has $$3$$ elements.

Step 1: Count all possible functions.
For every element of the domain we may choose any of the $$3$$ images independently, so the total number of functions is
$$3^{4}=81$$

Step 2: Subtract the onto (surjective) functions.
A function $$f:\{1,2,3,4\}\to\{a,b,c\}$$ is onto if each of $$a,b,c$$ actually appears as an image.
We count surjective functions by the Principle of Inclusion-Exclusion (PIE).

• Start with all functions: $$3^{4}$$.
• Subtract those that miss at least one specific element of the co-domain.
  Choosing which one is missed: $$\binom{3}{1}$$ ways.
  If that element is excluded, only $$2$$ images remain, giving $$2^{4}$$ functions.
  Hence this term is $$\binom{3}{1}\,2^{4}=3\cdot16=48$$.
• Add back the functions that miss two specific elements (they were subtracted twice).
  Choosing the two missed: $$\binom{3}{2}$$ ways.
  If two are excluded, only $$1$$ image remains, giving $$1^{4}=1$$ function.
  Hence this term is $$\binom{3}{2}\,1^{4}=3\cdot1=3$$.

Therefore, the number of onto functions is
$$3^{4}-\binom{3}{1}2^{4}+\binom{3}{2}1^{4}=81-48+3=36$$

Step 3: Count the non-onto functions.
Non-onto functions = Total functions − Onto functions:
$$81-36=45$$

Thus, the required number of functions that are not onto is $$45$$.

Option B which is: $$45$$

Get AI Help

Create a FREE account and get:

  • Free JEE Mains Previous Papers PDF
  • Take JEE Mains paper tests

JEE Quant Questions | JEE Quantitative Ability

JEE DILR Questions | LRDI Questions For JEE

JEE Verbal Ability Questions | VARC Questions For JEE

Free JEE Topicwise Questions

JEE Rotational MotionJEE Units & MeasurementsJEE Atomic StructureJEE GravitationJEE Periodic Table & PeriodicityJEE StatisticsJEE Inverse Trigonometric FunctionsJEE Magnetism & Magnetic MaterialsJEE Sequences & SeriesJEE MatricesJEE Alternating CurrentsJEE Carboxylic AcidsJEE Permutations & CombinationsJEE Work, Energy & PowerJEE Electromagnetic InductionJEE Electronic DevicesJEE d and f-Block ElementsJEE Chemical KineticsJEE Heat TransferJEE Three Dimensional GeometryJEE Magnetic Effects of CurrentJEE Hydrocarbons - AromaticJEE Electromagnetic WavesJEE Aldehydes & KetonesJEE Hydrocarbons - AlkanesJEE Applications of DerivativesJEE EquilibriumJEE Indefinite IntegrationJEE Chemical ThermodynamicsJEE ElectrochemistryJEE ProbabilityJEE BiomoleculesJEE Continuity & DifferentiabilityJEE Kinetic Theory of GasesJEE Vector AlgebraJEE Hydrocarbons - AlkynesJEE Differential EquationsJEE Current & ResistanceJEE Straight LinesJEE WavesJEE Redox ReactionsJEE Hydrocarbons - AlkenesJEE DeterminantsJEE SolutionsJEE Ray OpticsJEE Dual Nature of Matter & RadiationJEE Chemical Bonding & Molecular StructureJEE Complex NumbersJEE Sets, Relations & FunctionsJEE Electric Charges & FieldsJEE Laws of MotionJEE Fluid MechanicsJEE Basic Concepts in ChemistryJEE Trigonometric FunctionsJEE LimitsJEE Laws of ThermodynamicsJEE Kinematics - 2D MotionJEE p-Block Elements (Groups 13-18)JEE Simple Harmonic MotionJEE Electric Potential & CapacitanceJEE Coordination CompoundsJEE JEE 2D GeometryJEE CirclesJEE Definite IntegrationJEE EMF & Circuit AnalysisJEE Surface TensionJEE Atoms & NucleiJEE Laboratory Experiments - XIJEE Number SystemJEE Basic Principles of Organic ChemistryJEE Wave OpticsJEE Quadratic EquationsJEE Alcohols, Phenols & EthersJEE Organic Compounds with HalogensJEE DifferentiationJEE Conic SectionsJEE Nitrogen-Containing CompoundsJEE ElasticityJEE Practical Organic ChemistryJEE Kinematics - 1D MotionJEE Purification & CharacterisationJEE Binomial Theorem
Ask AI