HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Mathematics
  2. /Functions and Calculus
  3. /Counting Functions

Counting Functions

Mathematics · High School (11–12) · 1 worked problem

Counting functions asks how many functions there are between two finite sets. If set AAA has mmm members and set BBB has nnn members, each member of AAA can go to any of the nnn members of BBB. So there are nmn^mnm functions from AAA to BBB. A one-one function sends different inputs to different outputs, and there are n!(n−m)!\frac{n!}{(n - m)!}(n−m)!n!​ of these when m≤nm \leq nm≤n. Onto functions use every member of BBB and need more careful counting. These counts join the ideas of functions with permutations and combinations.

With practice you will be able to

  • Count all functions from one finite set to another
  • Count the one-one functions between two finite sets
  • Count onto functions for small sets by careful cases

On the syllabus of

  • JEE Main
  • JEE Advanced
  • BITSAT
  • MHT-CET
  • KCET
  • WBJEE
  • VITEEE
  • KEAM
  • and 14 more

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • Let A = {1, 2, 3, 4, 5} and B = {a, b, c}…Hard

Related topics

  • Functions and Calculus
  • Sets and Intervals
  • Relations and Functions
  • Graphs of Functions
  • Composite and Inverse Functions
  • Functions as Models of Data
  • Functional Equations
  • Limits and Derivatives
  • Continuity and Differentiability
  • Application of Derivatives
  • Integrals
  • Application of Integrals
  • Differential Equations