JEE Main maths PYQ, Permutations and Combinations

Counting with conditions: JEE Main PYQ with Solutions

26 questions on Counting with conditions from the Permutations and Combinations 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
Two players and play a series of games of badminton. The player, who wins games first, wins the series. Assuming that no game ends in a draw, the number of ways, in which player wins the series is ______.

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

Show answer and solution

Answer: 126 (exact integer)

If the series ends at game (), wins game and exactly of the first games: ways. Total .

Open question: Two players A and B play a series of games...

JEE Main 202604 Apr Shift 1

Single correct optionMarks +4, -1
The number of ways of forming a queue of boys and girls such that all the girls are not together, is:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (D)

All queues: . With the three girls as one block there are units: queues. Required count .

Open question: The number of ways of forming a queue of 4 boys and 3...

JEE Main 202628 Jan Shift 2

Numerical answerMarks +4, no negative
Three persons enter in a lift at the ground floor. The lift will go upto floor. The number of ways, in which the three persons can exit the lift at three different floors, if the lift does not stop at first, second and third floors, is equal to ______.

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

Show answer and solution

Answer: 210 (exact integer)

The lift can stop at floors to : floors. The three persons leave at three different floors: ways.

Open question: Three persons enter in a lift at the ground floor....

JEE Main 202621 Jan Shift 1

Single correct optionMarks +4, -1
The number of strictly increasing functions from the set to the set such that for , is equal to:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (D)

For a strictly increasing , , so means . Put . Then never decreases, and , so every is 1, 2 or 3. A non-decreasing list of six values from is fixed by how many 1's, 2's and 3's it has: ways.

Open question: The number of strictly increasing functions f from...

JEE Main 202507 Apr Shift 1

Numerical answerMarks +4, no negative
For , let denote the set of all subsets of with no two consecutive numbers. For example , but . Then is equal to ______.

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

Show answer and solution

Answer: 13 (exact integer)

Count the subsets of by size. No element: . One element: . Two elements, not consecutive: . Three elements: only , . Larger subsets must contain two consecutive numbers. Total .

Open question: For n ge 2, let S_n denote the set of all subsets of 1...

JEE Main 202502 Apr Shift 2

Single correct optionMarks +4, -1
The number of ways, in which the letters A, B, C, D, E can be placed in the boxes of the figure below so that no row remains empty and at most one letter can be placed in a box, is:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (D)

The rows have , and boxes. Without the row condition: choose 5 of the 8 boxes and arrange the letters, . Third row empty: the letters go into the 6 boxes of the first two rows, . First row empty: exactly the 5 boxes of rows two and three, . Second row empty: in the same way. Two rows cannot be empty together. Required count .

Open question: The number of ways, in which the letters A, B, C, D, E...

JEE Main 202502 Apr Shift 1

Single correct optionMarks +4, -1
The number of sequences of ten terms, whose terms are either or or , that contain exactly five s and exactly three s, is equal to
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

The ten terms are five 1's, three 2's and two 0's. A sequence may start with 0. The number of arrangements is .

Open question: The number of sequences of ten terms, whose terms are...

JEE Main 202523 Jan Shift 2

Numerical answerMarks +4, no negative
The number of ways, boys and girls can sit in a row so that either all the boys sit together or no two boys sit together, is ______.

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

Show answer and solution

Answer: 17280 (exact integer)

All boys together: the block and the four girls make units, ways. No two boys together: the four girls make gaps and the five boys must fill all of them, ways. The two cases cannot happen together. Total .

Open question: The number of ways, 5 boys and 4 girls can sit in a row...

JEE Main 202522 Jan Shift 2

Single correct optionMarks +4, -1
In a group of girls and boys, there are two boys and . The number of ways, in which these girls and boys can stand in a queue such that all the girls stand together, all the boys stand together, but and are not adjacent to each other, is:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (B)

The girls' block and the boys' block can be ordered in ways. The girls can be arranged in ways. The boys can be arranged in ways, of which have and next to each other, leaving . Total .

Open question: In a group of 3 girls and 4 boys, there are two boys...

JEE Main 202315 Apr Shift 1

Numerical answerMarks +4, no negative
A person forgets his -digit ATM pin code. But he remembers that in the code all the digits are different, the greatest digit is and the sum of the first two digits is equal to the sum of the last two digits. Then the maximum number of trials necessary to obtain the correct code is ______.

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

Show answer and solution

Answer: 72 (exact integer)

The digits come from to and include 7. Let 7 be paired with ; the other pair must have the same sum , using two different digits from to other than . : . : . : . : . : . : none. That is choices. In each, the two pairs can swap places ( ways) and each pair can be written in orders: codes. Total .

Open question: A person forgets his 4-digit ATM pin code. But he...

JEE Main 202311 Apr Shift 1

Numerical answerMarks +4, no negative
In an examination, students have been allotted their seats as per their roll numbers. The number of ways, in which none of the students sits on the allotted seat, is ______.

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

Show answer and solution

Answer: 44 (exact integer)

This is the number of derangements of objects: .

Open question: In an examination, 5 students have been allotted their...

JEE Main 202310 Apr Shift 1

Numerical answerMarks +4, no negative
The number of permutations of the digits without repetition, which neither contain the string nor the string , is ______.

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

Show answer and solution

Answer: 4898 (exact integer)

All permutations: . Containing 153: treat it as one block with the other four digits, . Containing 2467: one block with the other three digits, . Containing both: the two blocks in either order, . Containing at least one: . Required count .

Open question: The number of permutations of the digits 1, 2, 3...

JEE Main 202330 Jan Shift 2

Single correct optionMarks +4, -1
The number of ways of selecting two numbers and , and such that is the remainder when is divided by is
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

is odd and lies between and . The odd numbers of the form in that range are . Sum 25: , pairs. Sum 71: , pairs. Sum 117: needs , so , pairs. Sum 163: , pairs. Total .

Open question: The number of ways of selecting two numbers a and b...

JEE Main 202325 Jan Shift 1

Numerical answerMarks +4, no negative
Let . The number of non-empty subsets of that have the sum of all elements a multiple of , is ______.

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

Show answer and solution

Answer: 43 (exact integer)

Sort by remainder on division by 3: , (remainder 1), (remainder 2). Take elements from the second group and from the third. The sum is a multiple of 3 when is a multiple of 3: , giving choices. The element 3 can be in or out: . Leaving out the empty set gives .

Open question: Let S = 1, 2, 3, 5, 7, 10, 11. The number of non-empty...

JEE Main 202325 Jan Shift 1

Numerical answerMarks +4, no negative
Let and be distinct integers where and . Then, the number of ways of choosing and , such that is divisible by , is ______.

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

Show answer and solution

Answer: 120 (exact integer)

Each remainder on division by 5 occurs for exactly five of the numbers to . Count ordered pairs . Both multiples of 5 and different: . Remainders : each, so . Total .

Open question: Let x and y be distinct integers where 1 le x le 25...

JEE Main 202228 Jul Shift 1

Numerical answerMarks +4, no negative
Let be the set of all passwords which are six to eight characters long, where each character is either an alphabet from or a number from with the repetition of characters allowed. If the number of passwords in whose at least one character is a number from is , then is equal to ______.

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

Show answer and solution

Answer: 7073 (exact integer)

For length there are passwords in all and made of letters only, so have at least one number. Adding for : . So .

Open question: Let S be the set of all passwords which are six...

JEE Main 202229 Jun Shift 1

Numerical answerMarks +4, no negative
Let be a -element permutation with for and for , such that either are consecutive integers or are consecutive integers. Then the number of such permutations is equal to ______.

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

Show answer and solution

Answer: 18915 (exact integer)

Take consecutive to mean increasing by 1 each time. consecutive: can be to , and is any of the other numbers, so . consecutive: in the same way. Both at once means four consecutive integers: from to , so . Required count .

Open question: Let b_1 b_2 b_3 b_4 be a 4-element permutation with b_i...

JEE Main 202227 Jun Shift 1

Numerical answerMarks +4, no negative
The number of ways, identical cubes, of which are blue and rest are red, can be placed in a row so that between any two red cubes there should be at least blue cubes, is ______.

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

Show answer and solution

Answer: 56 (exact integer)

There are red cubes, with gaps between them. Put blue cubes in each gap first: that uses . The remaining blue cubes go anywhere among places (the four gaps and the two ends). The number of ways is .

Open question: The number of ways, 16 identical cubes, of which 11 are...

JEE Main 202224 Jun Shift 1

Numerical answerMarks +4, no negative
In an examination, there are multiple choice questions with choices, out of which exactly one is correct. There are marks for each correct answer, marks for each wrong answer and mark if the question is not attempted. Then, the number of ways a student appearing in the examination gets marks is ______.

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

Show answer and solution

Answer: 40 (exact integer)

With correct and wrong answers, and . The only solution is , . Choose the three questions answered correctly: ways. Each of the other two is answered wrongly in ways: . Total .

Open question: In an examination, there are 5 multiple choice...

JEE Main 202127 Aug Shift 2

Numerical answerMarks +4, no negative
Let . Then the number of elements in the set and the sum of all the elements of is not a multiple of is ______.

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

Show answer and solution

Answer: 80 (exact integer)

Sort by remainder on division by 3: (remainder 0), (remainder 1), (remainder 2). Elements of the first group do not change the remainder, so they can be chosen in ways. Take elements from and from : the sum has remainder of , which is a multiple of 3 only when . That happens in of the choices, so choices give a sum that is not a multiple of 3. Total (the empty set has sum 0 and is already left out).

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

JEE Main 202006 Sep Shift 1

Single correct optionMarks +4, -1
Two families with three members each and one family with four members are to be seated in a row. In how many ways can they be seated so that the same family members are not separated?
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (B)

Treat each family as one block. The three blocks can be ordered in ways. Inside the blocks the members can be ordered in , and ways. Total .

Open question: Two families with three members each and one family...

JEE Main 202004 Sep Shift 2

Numerical answerMarks +4, no negative
A test consists of multiple choice questions, each having alternative answers of which only one is correct. The number of ways, in which a candidate answers all six questions such that exactly four of the answers are correct, is ______.

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

Show answer and solution

Answer: 135 (exact integer)

Pick the four questions answered correctly: ways. Each of the other two questions must get one of its wrong answers: ways. Total .

Open question: A test consists of 6 multiple choice questions, each...

JEE Main 201912 Jan Shift 2

Single correct optionMarks +4, -1
There are men and two women participating in a chess tournament. Each participant plays two games with every other participant. If the number of games played by the men between themselves exceeds the number of games played between the men and the women by , then the value of is :
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (B)

Games among men: . Games between men and the two women: . So , that is , so and .

Open question: There are m men and two women participating in a chess...

JEE Main 201511 Apr

Single correct optionMarks +4, -1
Let and be two sets containing seven and three distinct elements respectively. Then the total number of functions that are onto, if there exist exactly three elements in such that , is equal to:
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

Choose the three elements sent to : ways. The other four elements go to or : ways, but the two ways that send all four to the same value are not onto. So there are ways, and the total is .

Open question: Let A = x_1, x_2, ldots, x_7 and B = y_1, y_2, y_3 be...

JEE Main 201419 Apr

Single correct optionMarks +4, -1
Two women and some men participated in a chess tournament in which every participant played two games with each of the other participants. If the number of games that the men played between themselves exceeds the number of games that the men played with the women by , then the number of men who participated in the tournament lies in the interval
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (C)

Let there be men. Games among men: . Games between men and the two women: . So , that is , giving . This lies in (the interval does not contain 11).

Open question: Two women and some men participated in a chess...

JEE Main 2012Offline

Single correct optionMarks +4, -1
Let . The number of different ordered pairs that can be formed such that , and is empty, is
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: (B)

Each element of has three choices: it is in only, in only, or in neither (it cannot be in both). With 5 elements choosing independently there are ordered pairs.

Open question: Let X = 1, 2, 3, 4, 5. The number of different ordered...

More from Permutations and Combinations

Arrangements of letters and words (33), Numbers formed with digits (57), Selections and committees (34), Distribution and division into groups (22), Circular arrangements (3), Counting in geometry (17), Formulae for nCr and nPr (9), Miscellaneous (16). All 217 Permutations and Combinations questions.