The chapter guide on sets, relations and functions covers set algebra, the identities, and a first pass at counting with sets. This post is about the set questions that are really counting questions: a survey with three overlapping groups, a bound on how large or small an overlap can be, the number of subsets of a small set with a stated property, the cardinality of a set defined by inequalities. These are the questions that appear in the first few lines of a JEE Main Mathematics paper and tempt students to draw a diagram, fill in numbers by trial and error, and arrive at the wrong total.
The cure is to keep a small number of exact tools and to know which one a question wants. The tools are the inclusion-exclusion formulas, the four-region and eight-region Venn layouts, the symmetric-difference count, the counting of subsets by independent choices, and the translation of interval conditions into sets of integers. We will build each tool, show where it fails if misapplied, and then work twelve examples. All the counting examples were confirmed by running through every case by computer, and the identity example was tested on every triple of subsets of a three-element set.
The chapter guide has one problem about two overlapping groups, the identity $A-(B-C)$, the number of pairs with $A\cup B$ equal to a full set, and so on. We avoid those and add new ones.
What this post covers
| Topic | Typical question |
|---|---|
| Two-set and three-set counting | Survey with overlaps; find "none", "exactly one", "exactly two" |
| Bounds on overlaps | Largest and smallest value of $n(A\cap B)$; minimum common to four groups |
| Symmetric difference | $n(A\,\Delta\,B)$ from the sizes |
| Subset counting | Subsets with a property, ordered pairs and triples of subsets |
| Power sets | $n(P(P(\varnothing)))$ and repeated power sets |
| Set-builder with intervals | Integers in $A-B$, where $A$ and $B$ come from inequalities |
| Identity checks | Which of several set identities hold |
Sets are in the JEE Main syllabus, and the chapter has a small weight in our mock design, so a few hours on the counting tools is a good investment: the questions are short and the methods are exact.
The two-set and three-set formulas
For two finite sets, $n(A\cup B)=n(A)+n(B)-n(A\cap B)$. For three,
$$n(A\cup B\cup C)=n(A)+n(B)+n(C)-n(A\cap B)-n(B\cap C)-n(A\cap C)+n(A\cap B\cap C).$$
The signs alternate: add singles, subtract pairs, add the triple. The same pattern continues for four sets.
The union formula counts "at least one". Survey questions usually ask for more precise categories, and each has its own formula. Write $S_1=\sum n(A_i)$, $S_2=\sum n(A_i\cap A_j)$ over pairs and $S_3=n(A\cap B\cap C)$. Then, for three sets:
$$\text{exactly one}=S_1-2S_2+3S_3,\qquad \text{exactly two}=S_2-3S_3,\qquad \text{exactly three}=S_3 .$$
$$\text{at least one}=S_1-S_2+S_3,\qquad \text{none}=n(\mathcal U)-(S_1-S_2+S_3).$$
These identities are easy to forget and easy to rebuild: in the Venn diagram each region of "exactly one" is counted once in $S_1$, zero times in $S_2$ and $S_3$; each region of "exactly two" is counted twice in $S_1$ and once in $S_2$; the centre region is counted three times in $S_1$, three times in $S_2$ and once in $S_3$. Solving the three equations gives the formulas above. If you cannot remember them in an exam, build the region counts from the inside out, as the first example below does.
A diagram is still the safest method for a non-routine question. Start with the innermost region (all three sets), then compute each "only two" region as a pairwise intersection minus the centre, then each "only one" region as the set size minus the overlapping parts. Check by adding all regions to see that they add up to the union.
Also read: Syllogism Tricks: Venn Method, Possibility and Either-Or Cases
Bounds on overlaps
If $n(A)=a$, $n(B)=b$ and the universal set has $u$ elements, then $A\cap B$ cannot be larger than the smaller of $a,b$, and cannot be so small that $A\cup B$ exceeds $u$. So
$$\max(0,\,a+b-u)\le n(A\cap B)\le\min(a,b).$$
Every integer in this range is possible, which makes "how many values can $n(A\cap B)$ take" a counting question on an interval.
For several groups, the minimum number belonging to all of them comes from counting what is missing. If $p_i\%$ belong to group $i$, then $(100-p_i)\%$ are outside group $i$. The outsiders from different groups can be different people, so the total number of people outside at least one group is at most the sum of the outside percentages. The minimum number inside all groups is $100-\sum(100-p_i)$, floored at zero. For percentages $70,75,80,85$ this gives $100-(30+25+20+15)=10$, so at least $10\%$ belong to all four.
Symmetric difference and cardinality
The symmetric difference $A\,\Delta\,B=(A-B)\cup(B-A)$ consists of the elements in exactly one of the two sets. Its cardinality is
$$n(A\,\Delta\,B)=n(A)+n(B)-2n(A\cap B),$$
since the intersection is removed from both sets rather than from the union once. Combined with $n(A\cup B)=n(A)+n(B)-n(A\cap B)$, it gives $n(A\cup B)=n(A\,\Delta\,B)+n(A\cap B)$.
The operation $\Delta$ is associative and commutative; the empty set is its identity, and every set is its own inverse: $A\,\Delta\,A=\varnothing$. The intersection distributes over it: $A\cap(B\,\Delta\,C)=(A\cap B)\,\Delta\,(A\cap C)$. The union does not distribute over it, and the same is true for set difference. These facts are tested in the multiple-correct example.
Counting subsets and tuples of subsets
A set with $n$ elements has $2^n$ subsets, because each element is independently in or out. Nearly every subset-counting question is a restatement of "each element makes a choice", with the choices restricted.
- Subsets containing a given element and avoiding another: those two elements are decided; the rest are free. For $\{1,\dots,8\}$, subsets containing $3$ and not $5$ number $2^6=64$.
- Subsets with at least one element of a group: all subsets minus those that avoid the group entirely. For $\{1,\dots,8\}$ with at least one odd element: $2^8-2^4=240$.
- Ordered pairs $(A,B)$ with $A\subseteq B\subseteq S$: each element is in neither, in $B$ only, or in both, which is $3$ choices, so $3^n$ pairs. Pairs with $A\subsetneq B$ number $3^n-2^n$, since the pairs with $A=B$ number $2^n$.
- Ordered triples with $A\cup B\cup C=S$: each element must be in at least one of the three sets, so it has $2^3-1=7$ choices, giving $7^n$ triples.
- Chains $A\subseteq B\subseteq C\subseteq S$: each element chooses where it enters the chain, among $4$ places (never, in $C$ only, in $B$ and $C$, in all three), so $4^n$.
- Subsets with no two consecutive elements of $\{1,\dots,n\}$: the count $a_n$ satisfies $a_n=a_{n-1}+a_{n-2}$ with $a_1=2$ and $a_2=3$, because either $n$ is not chosen (leaving $a_{n-1}$ choices) or $n$ is chosen and $n-1$ is not (leaving $a_{n-2}$). This is the Fibonacci sequence shifted, and $a_{10}=144$.
Power sets and repeated power sets
If $n(A)=m$, then $n(P(A))=2^m$. Starting from the empty set, $P(\varnothing)=\{\varnothing\}$ has one element, $P(P(\varnothing))$ has two, $P(P(P(\varnothing)))$ has four and one more application gives sixteen. The only trap is the first step: the power set of the empty set is not empty.
Sets defined by inequalities
Sets of real numbers described by inequalities are intervals or unions of intervals. The operations $\cap$, $\cup$, $-$ then become interval operations, and a question about "the number of integers in $A-B$" is a count of integer points. The method: solve each inequality for its interval, draw the number line, mark open and closed ends, and list the integers. The usual slips are an open end treated as closed and a quadratic inequality solved as if it were a single interval; $x^2-4x-5>0$ has two pieces, $x<-1$ and $x>5$.
Worked examples
Example 1 (numerical-value). In a survey of 200 people, 120 drink tea, 90 drink coffee and 70 drink milk. Also, 50 drink both tea and coffee, 30 drink both coffee and milk, 40 drink both tea and milk, and 20 drink all three. How many drink exactly two of the three drinks?
Solution. Build from the centre. All three: $20$. Tea and coffee only: $50-20=30$. Coffee and milk only: $30-20=10$. Tea and milk only: $40-20=20$. So exactly two: $30+10+20=60$. Check with the formula $S_2-3S_3=(50+30+40)-60=60$. For completeness, tea only is $120-50-40+20=50$, coffee only is $90-50-30+20=30$, milk only is $70-30-40+20=20$; the sum of all regions is $50+30+20+60+20=180$, so $20$ people drink none, which matches the union formula $280-120+20=180$. Answer: $60$.
Example 2 (numerical-value). In a universal set of 80 elements, $n(A)=60$ and $n(B)=45$. The number of different possible values of $n(A\cap B)$ is ______.
Solution. The lower bound is $60+45-80=25$ and the upper bound is $\min(60,45)=45$. Every integer from $25$ to $45$ is attainable, so the number of values is $45-25+1=21$. A direct count over all possible overlaps confirmed this. The classic slip is $45-25=20$, forgetting that both ends count. Answer: $21$.
Example 3 (numerical-value). In a group, $70\%$ like cricket, $75\%$ like football, $80\%$ like tennis and $85\%$ like hockey. The minimum percentage who like all four is ______.
Solution. The percentages who do not like each game are $30,25,20,15$, with total $90$. At most $90\%$ of the group can be outside at least one game, so at least $100-90=10\%$ like all four. The bound is attained by placing the four sets of non-lovers so that they do not overlap. Answer: $10$.
Example 4 (single-correct). The number of subsets of $\{1,2,\dots,10\}$ that contain no two consecutive integers (the empty set included) is
(A) $89$ (B) $123$ (C) $144$ (D) $233$
Solution. With $a_n$ as defined, $a_1=2$, $a_2=3$, $a_3=5$, $a_4=8$, $a_5=13$, $a_6=21$, $a_7=34$, $a_8=55$, $a_9=89$, $a_{10}=144$. Listing the $2^{10}=1024$ subsets and discarding those with two consecutive elements also gave $144$. Answer: (C).
Example 5 (numerical-value). The number of ordered triples $(A,B,C)$ of subsets of $\{1,2,3,4\}$ with $A\cup B\cup C=\{1,2,3,4\}$ is ______.
Solution. Each element must belong to at least one of $A,B,C$. It has $2^3-1=7$ ways to be placed (every non-empty pattern of membership), independently of the others, so the count is $7^4=2401$. The chapter guide's two-set version gives $3^4=81$ by the same argument. Answer: $2401$.
Example 6 (single-correct). The number of elements in $P(P(P(\varnothing)))$, where $P$ denotes the power set, is
(A) $3$ (B) $4$ (C) $8$ (D) $16$
Solution. $P(\varnothing)=\{\varnothing\}$ has $1$ element. $P(P(\varnothing))=\{\varnothing,\{\varnothing\}\}$ has $2$ elements. Then $P(P(P(\varnothing)))$ has $2^2=4$ elements. Option (D) is the count for one more application. Answer: (B).
Example 7 (numerical-value). If $n(A)=20$, $n(B)=30$ and $n(A\,\Delta\,B)=34$, find $n(A\cup B)$.
Solution. From $n(A\,\Delta\,B)=n(A)+n(B)-2n(A\cap B)$: $34=50-2n(A\cap B)$, so $n(A\cap B)=8$. Then $n(A\cup B)=50-8=42$. As a check, $n(A\,\Delta\,B)+n(A\cap B)=34+8=42$. Answer: $42$.
Example 8 (numerical-value). Among the integers from $1$ to $100$, the number that are divisible by exactly one of $4$ and $6$ is ______.
Solution. Multiples of $4$: $\lfloor100/4\rfloor=25$. Multiples of $6$: $\lfloor100/6\rfloor=16$. Multiples of both are multiples of $\text{lcm}(4,6)=12$: $\lfloor100/12\rfloor=8$. Exactly one: $25+16-2\times8=25$. (Divisible by at least one is $33$, so the count for "neither" is $67$.) A direct count agreed. The slip is to use the lcm as $24$ (the product) instead of $12$. Answer: $25$.
Example 9 (multiple-correct, Advanced flavour). For any three sets $A,B,C$, which of the following are always true?
(A) $A\cap(B\,\Delta\,C)=(A\cap B)\,\Delta\,(A\cap C)$ (B) $A\cup(B\,\Delta\,C)=(A\cup B)\,\Delta\,(A\cup C)$ (C) $A\,\Delta\,(B\,\Delta\,C)=(A\,\Delta\,B)\,\Delta\,C$ (D) $A-(B\cup C)=(A-B)\cap(A-C)$
Solution. (A) is the distributive law of intersection over symmetric difference and is true. (B) fails: take $A=\{1\}$, $B=\{1\}$, $C=\varnothing$. Then $B\,\Delta\,C=\{1\}$, so the left side is $\{1\}$, while $A\cup B=\{1\}$ and $A\cup C=\{1\}$ give the right side $\varnothing$. (C) is associativity and is true. (D) is De Morgan's law in difference form: $A\cap(B\cup C)'=(A\cap B')\cap(A\cap C')$, true. All four statements were tested on every triple of subsets of $\{1,2,3\}$, and exactly (A), (C), (D) held. Answer: (A), (C), (D).
Example 10 (numerical-value). Let $A=\{x\in\mathbb{R}:|x-1|<3\}$ and $B=\{x\in\mathbb{R}:x^2-4x-5>0\}$. The number of integers in $A-B$ is ______.
Solution. $|x-1|<3$ gives $-2<x<4$, so $A=(-2,4)$. $x^2-4x-5=(x-5)(x+1)>0$ gives $x<-1$ or $x>5$, so $B=(-\infty,-1)\cup(5,\infty)$. Then $A-B$ is the part of $(-2,4)$ not in $B$, namely $[-1,4)$. The integers are $-1,0,1,2,3$, which is $5$ integers. The slip is to treat $-1$ as excluded; it is not in $B$ because $B$ has an open end at $-1$. Answer: $5$.
Example 11 (numerical-value). The number of ordered pairs $(A,B)$ of subsets of $\{1,2,3,4,5\}$ with $A\subsetneq B$ (that is, $A\subseteq B$ and $A\ne B$) is ______.
Solution. Pairs with $A\subseteq B$ number $3^5=243$ (each element is in neither, in $B$ only, or in both). Those with $A=B$ number $2^5=32$. So the proper pairs are $243-32=211$. A direct enumeration of all pairs of the $32$ subsets confirmed this. Answer: $211$.
Example 12 (single-correct). A set $S$ has $8$ elements $\{1,\dots,8\}$. The number of subsets of $S$ that contain at least one odd number is
(A) $240$ (B) $255$ (C) $128$ (D) $192$
Solution. There are $4$ odd numbers. Subsets with no odd number are subsets of $\{2,4,6,8\}$, and there are $2^4=16$ of them. So the subsets with at least one odd number number $256-16=240$. Option (B) is $256-1$, which would count subsets by a single missing case. Answer: (A).
Common traps
- Mixing up "at least one" and "exactly one". The union formula counts people in one or more groups. "Exactly one" subtracts the people in two or three groups, with the coefficients $-2$ and $+3$.
- Forgetting the outside. Universal-set questions often ask for people in none of the groups. Compute the union and subtract it from the total.
- Using the product instead of the lcm. Numbers divisible by both $4$ and $6$ are the multiples of $12$, not of $24$. For coprime numbers the lcm is the product; otherwise it is not.
- Counting an interval's integers with the wrong end. The integers from $25$ to $45$ number $21$, not $20$. For intervals with open ends, check each end separately.
- Treating the power set of the empty set as empty. $P(\varnothing)=\{\varnothing\}$ has one element. Each further power set raises $2$ to the previous count, giving $1,2,4,16$.
- Distributing union over symmetric difference. Intersection distributes over $\Delta$; union does not. When a multiple-correct option claims a distributive law, test it with a one-element example.
- Counting ordered and unordered pairs as one. The pair $(A,B)$ is ordered, so $(\{1\},\{1,2\})$ and $(\{1,2\},\{1\})$ are different, though only one of them satisfies $A\subseteq B$. Read the question for "ordered".
- Applying the three-set formulas with only two overlaps given. If the problem gives pairwise overlaps but not the triple overlap, the "exactly" counts cannot be found. Look for a hidden relation, such as "everyone who likes all three..." or "no one likes all three".
- Assuming the maximum overlap is attainable together with other constraints. When several overlaps are fixed, the bounds on the remaining ones tighten. Redraw the diagram before applying a single-pair bound.
- Solving a quadratic inequality as one interval. $x^2-4x-5>0$ is outside the roots, not between them. Sketch the parabola before writing the set.
- Ignoring the empty set in subset counts. $2^n$ includes both the empty set and the whole set. Some questions want non-empty or proper subsets, and the counts are $2^n-1$ and $2^n-2$ respectively.
A one-page recap
- $n(A\cup B)=n(A)+n(B)-n(A\cap B)$; for three sets alternate $+,-,+$.
- Three sets: exactly one $=S_1-2S_2+3S_3$; exactly two $=S_2-3S_3$; exactly three $=S_3$.
- Overlap bounds: $\max(0,a+b-u)\le n(A\cap B)\le\min(a,b)$.
- Minimum common to several groups: $100-\sum(100-p_i)$ in percent, floored at zero.
- $n(A\,\Delta\,B)=n(A)+n(B)-2n(A\cap B)$; $\Delta$ is associative, $\cap$ distributes over it, $\cup$ does not.
- Subsets: $2^n$; pairs $A\subseteq B$: $3^n$; triples with union $S$: $7^n$; chains of length three: $4^n$; no two consecutive: Fibonacci.
- $P(\varnothing)$ has one element; repeated power sets give $1,2,4,16,\dots$.
- Sets from inequalities: solve, sketch the number line, count integer points with the ends checked.
Also read: Problems on H.C.F and L.C.M
How to practise this topic
Start with the first Sets chapter test. The chapter has five tests of 15 questions each in our design, so continue with the second, third, fourth and fifth. The book chapter on sets has more solved problems and diagrams: English, Hindi and Telugu. The whole series is on the JEE shelf.
A 7-day plan we suggest:
| Day | Work |
|---|---|
| 1 | Two- and three-set formulas; build the region table for example 1 from memory |
| 2 | Overlap bounds and percentage questions: examples 2 and 3, plus six more with different numbers |
| 3 | Subset counting: examples 4, 5, 11 and 12; invent three restrictions of your own and count them |
| 4 | Symmetric difference and the identity checks: examples 7 and 9 |
| 5 | Divisibility and interval sets: examples 8 and 10 |
| 6 | Chapter tests 1 and 2 under a 36-minute limit; log each error |
| 7 | Chapter tests 3 to 5; redo each wrong answer the next day |
Then move to the JEE Main Mathematics practice tests and the full mocks. The free 10-question JEE Main mini mock is an all-subject check that needs no sign-up. Full mocks, practice tests and chapter tests are part of the Pro Pass. For related reading, see the sibling post on types of functions and composition, the overview of sets, functions, complex numbers and quadratics, the post on permutations and combinations: counting techniques, and the guide to reading a problem statement carefully.
Frequently asked questions
How do I remember the formula for "exactly two" in a three-set problem?
Do not memorise it; rebuild it. The centre region is counted three times in the sum of pairwise intersections, so "exactly two" equals the sum of the pairwise intersections minus three times the triple intersection. Drawing the diagram and filling it from the centre outwards gives the same result with no formula.
Why is the power set of the empty set not empty?
The power set is the set of all subsets, and the empty set is a subset of itself. So $P(\varnothing)=\{\varnothing\}$ has one element. This is why $n(P(P(\varnothing)))=2$, not $1$.
How many subsets does a set with $n$ elements have, and how many are proper?
There are $2^n$ subsets. The proper subsets exclude the set itself, giving $2^n-1$, and the non-empty proper subsets number $2^n-2$. Read the question for the exact word used.
Is symmetric difference ever asked in JEE Main?
It appears in identity questions and in questions about cardinality, usually as an option such as "which is not equal to $A\,\Delta\,B$". The two formulas worth knowing are $(A-B)\cup(B-A)$ and $n(A)+n(B)-2n(A\cap B)$.
Can a Venn diagram be used for four sets?
A circle diagram does not give all sixteen regions for four sets, and inclusion-exclusion is the better tool. For a minimum-overlap question, count the people outside each group and use the complement bound shown above.
What is the fastest way to count integers in a set defined by inequalities?
Solve each inequality for an interval or union of intervals, draw the number line, apply the set operation, and list the integers. Check each end of each interval for open or closed.
How are sets questions connected to other chapters?
They connect to counting and probability through the same inclusion-exclusion formulas, to relations through Cartesian products, and to quadratics through sets defined by inequalities. A reliable sets chapter makes those chapters easier.


Comments (0)
No comments yet. Be the first to share your thoughts.