JEE Main maths PYQ, Functions

Counting functions and relations: JEE Main PYQ with Solutions

26 questions on Counting functions and relations from the Functions chapter, newest first. Open "Show answer and solution" under a question to check your work.

By Sunil Kumar. Updated 26 November 2026.

All 26 questions

JEE Main 202605 Apr Shift 1

Numerical answerMarks +4, no negative
Let . The number of one-one functions such that , and , is _____.

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 72 (exact integer)

can be , , or ; each has . In each case must be one of not already used: exactly choices. The remaining three elements can be arranged in ways. Total .

Open question: Let A = 1, 2, 3, 4, 5, 6. The number of one-one...

JEE Main 202623 Jan Shift 2

Single correct optionMarks +4, -1
Consider two sets and . Then the number of onto functions is equal to
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

: gives or : elements. : , or , that is (as is excluded): elements. Onto functions from a -element set to a -element set: .

Open question: Consider two sets A = x in Z : |(|x - 3| - 3)| le 1...

JEE Main 202504 Apr Shift 1

Single correct optionMarks +4, -1
Consider the sets , , , and . The total number of one-one functions from the set to the set is:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

Subtracting the two equations: , and then . Both have two real values, so has points. : integer points with are the origin, at distance , at distance and at distance : points. One-one functions: .

Open question: Consider the sets A = (x, y) in R x R : x^2 + y^2 = 25...

JEE Main 202524 Jan Shift 2

Numerical answerMarks +4, no negative
Number of functions , that assign to exactly one of the positive integers less than or equal to , is equal to _____.

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 392 (exact integer)

Choose which one of gets the value : ways; the other get . The numbers and are free: choices each. Total .

Open question: Number of functions f : 1, 2, ldots, 100 -> 0, 1, that...

JEE Main 202522 Jan Shift 2

Single correct optionMarks +4, -1
Let and . Then the number of many-one functions such that is equal to :
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (A)

Many-one functions in all: . Those with not in the range map into : , and all of these are many-one. Required number .

Open question: Let A = 1, 2, 3, 4 and B = 1, 4, 9, 16. Then the number...

JEE Main 202409 Apr Shift 2

Numerical answerMarks +4, no negative
Let and . Then the number of one-one functions from to is equal to _____

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 24 (exact integer)

The solutions are , , , , so has elements and also has . One-one functions between them: .

Open question: Let A = (x, y) : 2x + 3y = 23, x, y in N and B = x...

JEE Main 202408 Apr Shift 1

Single correct optionMarks +4, -1
Let be the greatest integer less than or equal to . Let be the set of all prime factors of and be the function . The number of one-to-one functions from to the range of is
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (D)

, so . , , , , . The range has elements, so the number of one-to-one functions from to it is .

Open question: Let [t] be the greatest integer less than or equal...

JEE Main 202405 Apr Shift 1

Single correct optionMarks +4, -1
Let and . Then the total number of one-one maps , such that , is :
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (B)

Pairs of different elements of adding to : and , each in two orders: ways for . The other three elements of go to three of the remaining five elements of : ways. Total .

Open question: Let A = 1, 3, 7, 9, 11 and B = 2, 4, 5, 7, 8, 10, 12....

JEE Main 202430 Jan Shift 1

Numerical answerMarks +4, no negative
Let and let denote the power set of . If the number of functions such that , is , and and is least, then is equal to _____.

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 44 (exact integer)

For each , must be a subset of containing ; the other elements are free, so there are choices. For the elements: functions. With the least : , , and .

Open question: Let A = 1, 2, 3, ldots, 7 and let P(A) denote the power...

JEE Main 202311 Apr Shift 2

Numerical answerMarks +4, no negative
Let and . Then the number of functions satisfying is equal to _____

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 360 (exact integer)

, so . Pairs with sum : , and each fixes . and are free: . Total .

Open question: Let A = 1, 2, 3, 4, 5 and B = 1, 2, 3, 4, 5, 6. Then...

JEE Main 202308 Apr Shift 2

Numerical answerMarks +4, no negative
Let and . Total number of onto functions such that , is equal to _____.

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 180 (exact integer)

Onto functions from a -element set to a -element set: one value is used twice, so . By symmetry is equally likely to be each of the four values, so of them have . Required number .

Open question: Let R = a, b, c, d, e and S = 1, 2, 3, 4. Total number...

JEE Main 202330 Jan Shift 2

Numerical answerMarks +4, no negative
Let . Then the number of possible functions such that for every with is equal to

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 432 (exact integer)

gives , so . The only other product inside is : must be in , so or (with or ). , and are free, values each. Total .

Open question: Let A = 1, 2, 3, 5, 8, 9. Then the number of possible...

JEE Main 202330 Jan Shift 1

Numerical answerMarks +4, no negative
Let . Then the number of one-one functions , where denote the power set of , such that where is

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 3240 (exact integer)

Since is one-one, form a strictly growing chain of subsets of . Their sizes are of the numbers . If size or size is the one left out, the chain adds one element at a time: chains each. If a size from to is left out, one step adds two elements at once: chains each. Total .

Open question: Let S = 1, 2, 3, 4, 5, 6. Then the number of one-one...

JEE Main 202325 Jan Shift 2

Single correct optionMarks +4, -1
The number of functions satisfying , is
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (D)

: . : . : . The value must satisfy , so or (integers only); the other values then also lie in range. So there are functions.

Open question: The number of functions f : 1, 2, 3, 4 -> a in Z : |a|...

JEE Main 202227 Jul Shift 2

Numerical answerMarks +4, no negative
The number of functions , from the set to the set such that , for every , is _____.

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 1440 (exact integer)

. For each count the squares not exceeding : the bounds are , giving choices. Product .

Open question: The number of functions f, from the set A = x in N...

JEE Main 202225 Jul Shift 1

Single correct optionMarks +4, -1
The total number of functions, such that , is equal to
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (B)

If , the pair can be chosen in ways. For to that is ways. is free: ways. Total .

Open question: The total number of functions, f : 1, 2, 3, 4 -> 1, 2...

JEE Main 202228 Jun Shift 2

Numerical answerMarks +4, no negative
Let . Then the number of elements in the set is

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 37 (exact integer)

The condition means , so is fixed by its values on the unordered pairs. Pairs with larger entry must go to . To reach we need . The two pairs with larger entry can take ; the three pairs with larger entry can take : functions. Remove those missing () and those missing (), and add back those missing both (): .

Open question: Let S = 1, 2, 3, 4. Then the number of elements in...

JEE Main 202224 Jun Shift 1

Numerical answerMarks +4, no negative
The number of one-one functions such that is _____

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 31 (exact integer)

Write the condition as with four different values. : gives ( ways); gives (); : (); : (). Subtotal . : gives (); : (); : (). Subtotal . : gives (); : (). Subtotal . : , (). Total .

Open question: The number of one-one functions f : a, b, c, d -> 0, 1...

JEE Main 202127 Jul Shift 1

Numerical answerMarks +4, no negative
Let . Then the number of possible functions such that for every and , is equal to _____.

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 490 (exact integer)

gives , so . forces or . : if , can be any of values; if , can be . and are free, values each. Total .

Open question: Let S = 1, 2, 3, 4, 5, 6, 7. Then the number...

JEE Main 202122 Jul Shift 1

Numerical answerMarks +4, no negative
Let . Then the number of bijective functions such that is equal to

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 720 (exact integer)

with three different values from : the only choice is in some order, ways. The other five elements go to the remaining five values: ways. Total .

Open question: Let A = 0, 1, 2, 3, 4, 5, 6, 7. Then the number...

JEE Main 202126 Feb Shift 2

Single correct optionMarks +4, -1
Let and be defined as . Then the number of possible functions such that is:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (D)

The range of is the even numbers . means must fix each of these five numbers. On the five odd numbers is free: choices each. Total .

Open question: Let A = 1, 2, 3, ldots, 10 and f : A -> A be defined as...

JEE Main 202125 Feb Shift 2

Single correct optionMarks +4, -1
Let denote the total number of one-one functions from a set with elements to a set with elements and denote the total number of one-one functions from the set to the set . Then :
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

. has elements, so . Then , that is .

Open question: Let x denote the total number of one-one functions from...

JEE Main 202005 Sep Shift 2

Numerical answerMarks +4, no negative
Let and . Then the number of elements in the set is _____

Numerical answer. Work it out before you open the answer.

Show answer and solution

Answer: 19 (exact integer)

Functions with in the range: all minus the that avoid , giving . One-one functions with in the range: all minus the that avoid , giving . So .

Open question: Let A = a, b, c and B = 1, 2, 3, 4. Then the number...

JEE Main 201911 Jan Shift 2

Single correct optionMarks +4, -1
The number of functions from onto such that is a multiple of , whenever is a multiple of is:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

An onto function between sets of the same size is a bijection. The five multiples of must go to five different values among the six multiples of : ways. The other numbers go to the values left over: ways. Total .

Open question: The number of functions f from 1, 2, 3, ldots, 20 onto...

JEE Main 201219 May

Single correct optionMarks +4, -1
If denotes the set of all subsets of a given set , then the number of one-to-one functions from the set to the set is
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

has elements. A one-to-one function sends , , to three different elements of : ways.

Open question: If P(S) denotes the set of all subsets of a given set...

More from Functions

Functional equations (38), One-one and onto functions (21), Range of a function (23), Inverse of a function (12), Domain of a function (43), Composite functions (24), Miscellaneous (17), Even, odd and periodic functions (6). All 210 Functions questions.