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.
Let A={1,2,3,4,5,6}. The number of one-one functions f:A→A such that f(1)≥3, f(3)≤4 and f(2)+f(3)=5, is _____.
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 72 (exact integer)
(f(2),f(3)) can be (1,4), (2,3), (3,2) or (4,1); each has f(3)≤4. In each case f(1) must be one of 3,4,5,6 not already used: exactly 3 choices. The remaining three elements can be arranged in 3!=6 ways. Total =4×3×6=72.
Consider two sets A={x∈Z:∣(∣x−3∣−3)∣≤1} and B={x∈R−{1,2}:x−1(x−2)(x−4)loge(∣x−2∣)=0}. Then the number of onto functions f:A→B is equal to
A32
B79
C62
D81
Show answer and solution
Answer: (C)
A: 2≤∣x−3∣≤4 gives x=5,6,7 or x=1,0,−1: 6 elements. B: x=4, or ∣x−2∣=1, that is x=3 (as x=1 is excluded): 2 elements. Onto functions from a 6-element set to a 2-element set: 26−2=62.
Consider the sets A={(x,y)∈R×R:x2+y2=25}, B={(x,y)∈R×R:x2+9y2=144}, C={(x,y)∈Z×Z:x2+y2≤4}, and D=A∩B. The total number of one-one functions from the set D to the set C is:
A15120
B19320
C17160
D18290
Show answer and solution
Answer: (C)
Subtracting the two equations: 8y2=119, and then x2=25−8119=881. Both have two real values, so D has 4 points. C: integer points with x2+y2≤4 are the origin, 4 at distance 1, 4 at distance 2 and 4 at distance 2: 13 points. One-one functions: 13×12×11×10=17160.
Let A={1,2,3,4} and B={1,4,9,16}. Then the number of many-one functions f:A→B such that 1∈f(A) is equal to :
A151
B139
C163
D127
Show answer and solution
Answer: (A)
Many-one functions in all: 44−4!=232. Those with 1 not in the range map into {4,9,16}: 34=81, and all of these are many-one. Required number =232−81=151.
Let [t] be the greatest integer less than or equal to t. Let A be the set of all prime factors of 2310 and f:A→Z be the function f(x)=[log2(x2+[5x3])]. The number of one-to-one functions from A to the range of f is
A25
B24
C20
D120
Show answer and solution
Answer: (D)
2310=2×3×5×7×11, so A={2,3,5,7,11}. f(2)=[log25]=2, f(3)=[log214]=3, f(5)=[log250]=5, f(7)=[log2117]=6, f(11)=[log2387]=8. The range has 5 elements, so the number of one-to-one functions from A to it is 5!=120.
Let A={1,3,7,9,11} and B={2,4,5,7,8,10,12}. Then the total number of one-one maps f:A→B, such that f(1)+f(3)=14, is :
A480
B240
C120
D180
Show answer and solution
Answer: (B)
Pairs of different elements of B adding to 14: (2,12) and (4,10), each in two orders: 4 ways for (f(1),f(3)). The other three elements of A go to three of the remaining five elements of B: 5×4×3=60 ways. Total =240.
Let A={1,2,3,…,7} and let P(A) denote the power set of A. If the number of functions f:A→P(A) such that a∈f(a), ∀a∈A is mn, m and n∈N and m is least, then m+n is equal to _____.
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 44 (exact integer)
For each a, f(a) must be a subset of A containing a; the other 6 elements are free, so there are 26 choices. For the 7 elements: (26)7=242 functions. With the least m: m=2, n=42, and m+n=44.
Let R={a,b,c,d,e} and S={1,2,3,4}. Total number of onto functions f:R→S such that f(a)=1, 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 5-element set to a 4-element set: one value is used twice, so 5C2×4!=240. By symmetry f(a) is equally likely to be each of the four values, so 60 of them have f(a)=1. Required number =240−60=180.
Let A={1,2,3,5,8,9}. Then the number of possible functions f:A→A such that f(m⋅n)=f(m)⋅f(n) for every m,n∈A with m⋅n∈A is equal to
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 432 (exact integer)
m=n=1 gives f(1)=f(1)2, so f(1)=1. The only other product inside A is 3×3=9: f(9)=f(3)2 must be in A, so f(3)=1 or 3 (with f(9)=1 or 9). f(2), f(5) and f(8) are free, 6 values each. Total =2×63=432.
Let S={1,2,3,4,5,6}. Then the number of one-one functions f:S→P(S), where P(S) denote the power set of S, such that f(n)⊂f(m) where n<m is
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 3240 (exact integer)
Since f is one-one, f(1),f(2),…,f(6) form a strictly growing chain of 6 subsets of S. Their sizes are 6 of the 7 numbers 0,1,…,6. If size 0 or size 6 is the one left out, the chain adds one element at a time: 6!=720 chains each. If a size k from 1 to 5 is left out, one step adds two elements at once: 2!6!=360 chains each. Total =720+720+5×360=3240.
The number of functions f:{1,2,3,4}→{a∈Z:∣a∣≤8} satisfying f(n)+n1f(n+1)=1, ∀n∈{1,2,3} is
A3
B4
C1
D2
Show answer and solution
Answer: (D)
n=1: f(2)=1−f(1). n=2: f(3)=2−2f(2)=2f(1). n=3: f(4)=3−3f(3)=3−6f(1). The value f(4) must satisfy ∣3−6f(1)∣≤8, so f(1)=0 or 1 (integers only); the other values then also lie in range. So there are 2 functions.
The number of functions f, from the set A={x∈N:x2−10x+9≤0} to the set B={n2:n∈N} such that f(x)≤(x−3)2+1, for every x∈A, is _____.
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 1440 (exact integer)
A={1,2,…,9}. For each x count the squares not exceeding (x−3)2+1: the bounds are 5,2,1,2,5,10,17,26,37, giving 2,1,1,1,2,3,4,5,6 choices. Product =2×2×3×4×5×6=1440.
Let S={1,2,3,4}. Then the number of elements in the set {f:S×S→S:f is onto and f(a,b)=f(b,a)≥a∀(a,b)∈S×S} is
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 37 (exact integer)
The condition means f(a,b)=f(b,a)≥max(a,b), so f is fixed by its values on the 10 unordered pairs. Pairs with larger entry 4 must go to 4. To reach 1 we need f(1,1)=1. The two pairs with larger entry 2 can take 2,3,4; the three pairs with larger entry 3 can take 3,4: 32×23=72 functions. Remove those missing 2 (22×23=32) and those missing 3 (22×1=4), and add back those missing both (1): 72−32−4+1=37.
Let S={1,2,3,4,5,6,7}. Then the number of possible functions f:S→S such that f(m⋅n)=f(m)⋅f(n) for every m,n∈S and m⋅n∈S, is equal to _____.
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 490 (exact integer)
m=n=1 gives f(1)=f(1)2, so f(1)=1. f(4)=f(2)2≤7 forces f(2)=1 or 2. f(6)=f(2)f(3)≤7: if f(2)=1, f(3) can be any of 7 values; if f(2)=2, f(3) can be 1,2,3. f(5) and f(7) are free, 7 values each. Total =(7+3)×7×7=490.
Let A={0,1,2,3,4,5,6,7}. Then the number of bijective functions f:A→A such that f(1)+f(2)=3−f(3) is equal to
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 720 (exact integer)
f(1)+f(2)+f(3)=3 with three different values from A: the only choice is 0,1,2 in some order, 3! ways. The other five elements go to the remaining five values: 5! ways. Total =6×120=720.
Let A={1,2,3,…,10} and f:A→A be defined as f(k)={k+1kif k is oddif k is even. Then the number of possible functions g:A→A such that gof=f is:
A10C5
B55
C5!
D105
Show answer and solution
Answer: (D)
The range of f is the even numbers 2,4,6,8,10. g(f(k))=f(k) means g must fix each of these five numbers. On the five odd numbers g is free: 10 choices each. Total =105.
Let x denote the total number of one-one functions from a set A with 3 elements to a set B with 5 elements and y denote the total number of one-one functions from the set A to the set A×B. Then :
Ay=273x
B2y=273x
C2y=91x
Dy=91x
Show answer and solution
Answer: (C)
x=5×4×3=60. A×B has 15 elements, so y=15×14×13=2730. Then 2y=5460=91×60, that is 2y=91x.
Let A={a,b,c} and B={1,2,3,4}. Then the number of elements in the set C={f:A→B∣2∈f(A) and f is not one-one} is _____
Numerical answer. Work it out before you open the answer.
Show answer and solution
Answer: 19 (exact integer)
Functions with 2 in the range: all 43=64 minus the 33=27 that avoid 2, giving 37. One-one functions with 2 in the range: all 4×3×2=24 minus the 3×2×1=6 that avoid 2, giving 18. So 37−18=19.
The number of functions f from {1,2,3,…,20} onto {1,2,3,…,20} such that f(k) is a multiple of 3, whenever k is a multiple of 4 is:
A65×(15)!
B5!×6!
C(15)!×6!
D56×15
Show answer and solution
Answer: (C)
An onto function between sets of the same size is a bijection. The five multiples of 4 must go to five different values among the six multiples of 3: 6×5×4×3×2=6! ways. The other 15 numbers go to the 15 values left over: 15! ways. Total =(15)!×6!.