∣A∩B∣ = lcm(4,6)=12 ke multiples: ⌊100/12⌋=8.KYUN 4⋅6 nahin, lcm: koi number jo dono 4 aur 6 se divisible ho, woh unke least common multiple, 12 se divisible hona chahiye — product 24 se nahin (warna 12,36,60,… miss ho jaayenge).
∣A∪B∣=25+16−8=33.Answer: 33.
Recall Solution
55+50+40−20−15−12+8.
Step by step: singles =145; pairs ghataao 145−47=98; triple jodo 98+8=106.
KYUN +8: woh 8 all-three students 3 baar add kiye gaye (har single mein ek baar) aur 3 baar ghataaye gaye (har pair mein ek baar), net 0 hua — toh unhe ek baar wapas restore karna padega.
Answer: 106.
KAUNSA tool: inclusion–exclusion se "kam se kam ek" count karo, phir total se ghataao — "none" ko directly count karne se kahin zyada aasaan hai. Neeche shaded region dekho.
Maano A,B,C kramashah 2,3,5 ke multiples hain.
Singles: ⌊1000/2⌋=500,⌊1000/3⌋=333,⌊1000/5⌋=200.
Pairs (lcm use karo): ⌊1000/6⌋=166,⌊1000/10⌋=100,⌊1000/15⌋=66.
Triple: ⌊1000/30⌋=33.∣A∪B∪C∣=500+333+200−166−100−66+33=734.Kisi se bhi divisible nahin: 1000−734=266.KYUN complement: "kisi se divisible nahin" union ka bahar hai; total minus union ek line mein de deta hai.
Answer: 266.
Recall Solution
KYUN ek nayi formula: union "one or more" count karta hai, lekin hum strictly ek chahte hain. Exactly ek set mein jo element ho woh ek baar count ho; exactly do mein ho toh zero baar; exactly teen mein ho toh zero baar.
"Exactly one" ki count hai
∑∣Ai∣−2∑i<j∣Ai∩Aj∣+3∣A∩B∩C∣.KYUN coefficients −2,+3 hain: exactly do sets mein koi element (12)=2 singles mein aur (22)=1 pair mein aata hai, toh 2−2(1)=0. Teeno mein wala element 3 singles, 3 pairs, 1 triple mein aata hai: 3−2(3)+3(1)=0. Sirf "exactly ek mein" wala coefficient 1 ke saath bachta hai.
=145−2(47)+3(8)=145−94+24=75.Answer: 75.
KAUNSA tool: inclusion–exclusion se "bad" functions count karo jo kam se kam ek box miss karte hain, phir saare 35 functions se ghataao.
Maano Ai = woh functions jo box bi ko avoid karte hain.
∣A1∩A2∩A3∣ = 0 boxes mein functions =0; (33)=1.
Kam se kam ek box miss karne wale functions:
3(32)−3(1)+0=96−3=93.
Surjections =243−93=150.KYUN yeh formula se match karta hai: surjections =∑k=03(−1)k(k3)(3−k)5=243−96+3−0=150.Answer: 150.
Recall Solution
KAUNSA tool: derangements Dn, ek inclusion–exclusion ka payoff (parent example 3 dekho).
Maano Ai = woh arrangements jahan letter i apne sahi envelope mein hai, toh ∣Ai∣=(n−1)!, aur k-fold intersection k letters ko fix karta hai: (n−k)! with (kn) choices.
D5=5!∑k=05k!(−1)k=120(1−1+21−61+241−1201).
Bracket compute karo: 0+0.5−0.16+0.0416−0.0083=0.366, aur 120×12044=44.Answer: D5=44.
KAUNSA tool:Bonferroni Inequalities — inclusion–exclusion ko odd number of terms par truncate karne se over-estimate milta hai (upper bound); even number par under-estimate (lower bound).
1 term ke baad (odd → upper): P(∪)≤∑P(Ai)=3(0.4)=1.2. (Trivially 1 par cap.)
2 terms ke baad (even → lower): P(∪)≥∑P(Ai)−∑i<jP(Ai∩Aj)=1.2−3(0.1)=0.9.
Toh 0.9≤P(A∪B∪C)≤1.KAB exact = lower bound 0.9: equality tab hoti hai jab triple intersection empty ho, P(A∩B∩C)=0, kyunki full formula lower bound mein +P(A∩B∩C) add karta hai.
Answer: bounds [0.9,1]; exact =0.9 iff P(A∩B∩C)=0.
Recall Solution
Strategy: ek element x fix karo jo exactly r sets mein hai, aur dikhao ki woh Em mein 1 contribute karta hai jab r=m ho aur 0 otherwise. Phir saare x par sum karne se count mil jaati hai.
Sk mein uska contribution.x ek k-fold intersection mein tab aata hai jab chune gaye saare k sets us r mein se hon jo use contain karte hain, toh woh Sk mein (kr) contribute karta hai (aur 0 agar k>r).
Em mein uska contribution. Substitute karo:
∑k=mn(−1)k−m(mk)(kr).
Subset-of-a-subset identity use karo (mk)(kr)=(mr)(k−mr−m) (KYUN:r mein se k choose karna phir un k mein se m choose karna, barabar hai r mein se directly woh m choose karna phir bache hue r−m mein se k−m choose karna). (mr) factor out karo:
(mr)∑k=mr(−1)k−m(k−mr−m).j=k−m let karo:
(mr)∑j=0r−m(−1)j(jr−m)=(mr)(1−1)r−m.KYUN yahan binomial theorem:∑j(−1)j(jN)=(1−1)N alternating sum ko 0N mein collapse kar deta hai.
Agar r>m: (1−1)r−m=0 → 0 contribute karta hai. ✓
Agar r=m: (1−1)0=1, aur (mm)=1 → 1 contribute karta hai. ✓
Agar r<m: sum empty hai → 0. ✓
Exactly m sets mein har element 1 contribute karta hai, baaki sab 0. Isliye Em unhe exactly count karta hai. ■