11.1 Sets (Kümeler), Cartesian Products, Binary Operations (İşlem) & Modular Arithmetic (Modüler Aritmetik)

Key Takeaways

  • An n-element set has 2^n total subsets and 2^n - 1 proper subsets (öz alt küme); fixing p specific elements as included or excluded leaves 2^(n-p) subsets, while requiring at least one of two elements {a, b} gives 2^n - 2^(n-2) subsets.

  • The Inclusion-Exclusion Principle governs union cardinalities: s(A ∪ B) = s(A) + s(B) - s(A ∩ B), while De Morgan's Laws relate complements via (A ∪ B)' = A' ∩ B' and s(A) + s(A') = s(E).

  • For a Cartesian product A × B, s(A × B) = s(A) · s(B) and the smallest circle enclosing all lattice points of A × B has radius R = (1/2)√((Δx_max)^2 + (Δy_max)^2).

  • For a binary operation, check a two-sided identity and inverse; an absorbing element must satisfy the defining operation on both sides.

  • In modular arithmetic, large exponents are reduced by finding the smallest positive period k where a^k ≡ 1 (mod m), provided gcd(a,m)=1 and replacing the exponent with its remainder modulo k.

Last updated: October 2026

Sets (Kümeler), Cartesian Products, Binary Operations & Modular Arithmetic

On the TR-YÖS, set theory, abstract binary operations (işlem), and modular arithmetic (modüler aritmetik) bridge foundational arithmetic and structural algebra. Questions in this domain rarely ask for long proofs; instead, they test whether you can immediately translate element constraints into powers of 22, apply inclusion-exclusion without double-counting, extract identity and inverse elements from a custom algebraic rule, and collapse giant exponents using modular periods.


1. Sets (Kümeler) & Constrained Subset Counting

Let AA be a finite set with cardinality (eleman sayısı) s(A)=ns(A) = n. Every element in AA has two independent choices when forming a subset: either it is included or it is excluded.

  • Total Subsets (Alt Küme Sayısı): 2n2^n
  • Proper Subsets (Öz Alt Küme Sayısı): 2n−12^n - 1 (all subsets except the set AA itself)
  • kk-Element Subsets ($k$ Elemanlı Alt Küme Sayısı): (nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n-k)!}, where (n0)+(n1)+⋯+(nn)=2n\binom{n}{0} + \binom{n}{1} + \cdots + \binom{n}{n} = 2^n and (nk)=(nn−k)\binom{n}{k} = \binom{n}{n-k}.

Subsets with Element Constraints

Whenever a problem locks the status of pp specific elements (either forcing them in or forcing them out), those pp elements lose their freedom of choice, leaving n−pn - p free elements:

  1. Contains (or does NOT contain) pp specific elements: Both yield 2n−p2^{n-p} subsets. Even if p1p_1 elements must be in and p2p_2 elements must be out, the count is 2n−(p1+p2)2^{n - (p_1 + p_2)}.
  2. Contains at least one of {a,b}\{a, b\} ($a$ veya $b$ bulunur): Subtract the subsets containing neither aa nor bb from the total:
Total−Neither(a,b)=2n−2n−2\text{Total} - \text{Neither}(a, b) = 2^n - 2^{n-2}

More generally, the number of subsets containing at least one of pp specified elements is 2n−2n−p2^n - 2^{n-p}. 3. Contains aa OR bb, but NOT both: Either a∈S,b∉Sa \in S, b \notin S (2n−22^{n-2} ways) or a∉S,b∈Sa \notin S, b \in S (2n−22^{n-2} ways), giving 2⋅2n−2=2n−12 \cdot 2^{n-2} = 2^{n-1} subsets.


2. Set Operations, Complements & Inclusion-Exclusion

For sets A,B,CA, B, C inside a universal set EE (evrensel küme), the Inclusion-Exclusion Principle (Birleşim Kümesinin Eleman Sayısı) prevents double-counting elements in intersections:

s(A∪B)=s(A)+s(B)−s(A∩B)s(A \cup B) = s(A) + s(B) - s(A \cap B)

Partitioning A∪BA \cup B into three mutually disjoint regions (ayrık bölgeler) gives the high-speed alternative:

s(A∪B)=s(A∖B)+s(B∖A)+s(A∩B)s(A \cup B) = s(A \setminus B) + s(B \setminus A) + s(A \cap B)

For three sets:

s(A∪B∪C)=s(A)+s(B)+s(C)−s(A∩B)−s(A∩C)−s(B∩C)+s(A∩B∩C)s(A \cup B \cup C) = s(A) + s(B) + s(C) - s(A \cap B) - s(A \cap C) - s(B \cap C) + s(A \cap B \cap C)

Complements (Tümleyen) & De Morgan's Laws

The complement A′A' consists of all elements in EE outside AA:

  • Universal Partition: s(A)+s(A′)=s(E)s(A) + s(A') = s(E), which implies s(A)+s(B′)+s(A′)+s(B)=2⋅s(E)s(A) + s(B') + s(A') + s(B) = 2 \cdot s(E).
  • Set Difference Conversion: A∖B=A∩B′A \setminus B = A \cap B'.
  • De Morgan's Laws: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' and (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'.

3. Cartesian Products (Kartezyen Çarpım)

The Cartesian product of AA and BB is the set of all ordered pairs A×B={(x,y)∣x∈A and y∈B}A \times B = \{(x, y) \mid x \in A \text{ and } y \in B\}.

  • Cardinality: s(A×B)=s(A)⋅s(B)s(A \times B) = s(A) \cdot s(B), and s(A×(B∪C))=s(A)⋅s(B∪C)s(A \times (B \cup C)) = s(A) \cdot s(B \cup C).
  • Geometric Enclosing Formulas: When A,B⊂RA, B \subset \mathbb{R} are finite sets of numbers, plotting A×BA \times B on the coordinate plane creates a rectangular grid of lattice points with horizontal span Δxmax⁡=max⁡(A)−min⁡(A)\Delta x_{\max} = \max(A) - \min(A) and vertical span Δymax⁡=max⁡(B)−min⁡(B)\Delta y_{\max} = \max(B) - \min(B):
    • Smallest Enclosing Rectangle Area: Δxmax⁡⋅Δymax⁡\Delta x_{\max} \cdot \Delta y_{\max}
    • Smallest Enclosing Circle Radius (En Küçük Çemberin Yarıçapı): The diagonal of the bounding rectangle is the diameter d=(Δxmax⁡)2+(Δymax⁡)2d = \sqrt{(\Delta x_{\max})^2 + (\Delta y_{\max})^2}, so the radius is:
R=12(Δxmax⁡)2+(Δymax⁡)2R = \frac{1}{2}\sqrt{(\Delta x_{\max})^2 + (\Delta y_{\max})^2}

4. Abstract Binary Operations (İşlem)

An abstract binary operation ⋆\star on a set SS assigns a formula to x⋆yx \star y (for example, x⋆y=x+y−12xyx \star y = x + y - \frac{1}{2}xy). Never guess the identity element to be 00 or 11—always solve from the axioms in strict order:

  1. Identity Element (Birim / Etkisiz Eleman ee): Set x⋆e=xx \star e = x (and e⋆x=xe \star x = x) and solve for ee so that ee is independent of xx.
  2. Inverse of an Element ($x$'in Tersi x−1x^{-1}): Using the exact number ee found in Step 1, set:
x⋆x−1=ex \star x^{-1} = e

and solve for x−1x^{-1}. Check x−1⋆x=ex^{-1} \star x=e as well; the two conditions coincide for a commutative operation. 3. Absorbing Element (Yutan Eleman yy): An element yy is absorbing if x⋆y=yx \star y=y and y⋆x=yy \star x=y for every xx in the set. For the specific commutative operation x⋆y=x+y−12xyx \star y=x+y-\frac12xy, the identity is 00 and 22 is absorbing: x⋆2=x+2−x=2x \star 2=x+2-x=2. Since 2⋆z2 \star z always equals 22, it cannot equal the identity 00, so 22 has no inverse. Do not infer an absorbing element merely from a vanishing factor in an identity equation; substitute it into both defining conditions.

Important

In a finite operation table (işlem tablosu), the identity element ee must have a row that copies the column headers and a column that copies the row headers. To find a candidate a−1a^{-1}, locate ee inside row aa and read its column header, then confirm that the reversed product also equals ee.


5. Modular Arithmetic (Modüler Aritmetik)

For integers a,ba, b and modulus m≥2m \ge 2, we write a≡b(modm)a \equiv b \pmod m if and only if mm divides (a−b)(a - b), meaning aa and bb leave the same remainder when divided by mm.

  • Algebraic Compatibility: If a≡b(modm)a \equiv b \pmod m and c≡d(modm)c \equiv d \pmod m, then a±c≡b±d(modm)a \pm c \equiv b \pm d \pmod m, a⋅c≡b⋅d(modm)a \cdot c \equiv b \cdot d \pmod m, and an≡bn(modm)a^n \equiv b^n \pmod m.
  • Cyclic Power Reduction: To evaluate aN(modm)a^N \pmod m for N≥0N\ge0 when gcd⁡(a,m)=1\gcd(a,m)=1:
    1. Reduce the base modulo mm: replace aa with r≡a(modm)r \equiv a \pmod m (using negative remainders like m−1≡−1(modm)m - 1 \equiv -1 \pmod m whenever convenient).
    2. Compute successive powers r1,r2,r3,…(modm)r^1, r^2, r^3, \dots \pmod m until you find the smallest positive period kk such that rk≡1(modm)r^k \equiv 1 \pmod m (by Fermat's Little Theorem, if pp is prime and p∤ap \nmid a, then ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p, so the period kk divides p−1p - 1).
    3. Divide the exponent NN by kk: if N=k⋅q+sN = k \cdot q + s with 0≤s<k0 \le s < k, then:
aN≡(rk)q⋅rs≡1q⋅rs≡rs(modm)a^N \equiv (r^k)^q \cdot r^s \equiv 1^q \cdot r^s \equiv r^s \pmod m
  • Units Digit (Birler Basamağı) Problems: Asking for the units digit of a number is identical to computing that number (mod10)\pmod{10}. For instance, to find the units digit of 202720262027^{2026}, reduce the base 2027≡7(mod10)2027 \equiv 7 \pmod{10}. The powers of 77 modulo 1010 cycle with period k=4k = 4: 71≡77^1 \equiv 7, 72≡97^2 \equiv 9, 73≡37^3 \equiv 3, 74≡1(mod10)7^4 \equiv 1 \pmod{10}. Dividing the exponent 20262026 by 44 gives remainder 22 (2026=4⋅506+22026 = 4 \cdot 506 + 2), so 20272026≡72≡9(mod10)2027^{2026} \equiv 7^2 \equiv 9 \pmod{10}.

Summary Reference Table

Concept / TopicCore Formula / RuleTR-YÖS Exam Shortcut
Constrained Subsetspp fixed elements (∈\in or ∉\notin): 2n−p2^{n-p}"At least one of {a,b}\{a, b\}": 2n−2n−22^n - 2^{n-2}
Inclusion-Exclusions(A∪B)=s(A)+s(B)−s(A∩B)s(A \cup B) = s(A) + s(B) - s(A \cap B)Disjoint form: s(A∖B)+s(B∖A)+s(A∩B)s(A \setminus B) + s(B \setminus A) + s(A \cap B)
Cartesian CircleR=12(Δxmax⁡)2+(Δymax⁡)2R = \frac{1}{2}\sqrt{(\Delta x_{\max})^2 + (\Delta y_{\max})^2}Δxmax⁡=xmax⁡−xmin⁡\Delta x_{\max} = x_{\max} - x_{\min}, Δymax⁡=ymax⁡−ymin⁡\Delta y_{\max} = y_{\max} - y_{\min}
Binary Identity (ee)x⋆e=e⋆x=xx \star e = e \star x = xSolve for ee first; never assume e=0e = 0 or e=1e = 1
Binary Inverse (x−1x^{-1})x⋆x−1=ex \star x^{-1} = eSubstitute the absorbing element to see which xx has no inverse
Modular Power Cycleak≡1(modm)  ⟹  akq+s≡asa^k \equiv 1 \pmod m \implies a^{kq+s} \equiv a^sUnits digit   ⟺  (mod10)\iff \pmod{10}; use −1-1 when a≡m−1a \equiv m - 1

Worked Examples

Worked Example 1: Constrained Subsets & Minimum Enclosing Circle of A×BA \times B

Problem: Let A={−3,−1,0,2,4,5,7}A = \{-3, -1, 0, 2, 4, 5, 7\} and B={−2,1,6}B = \{-2, 1, 6\}.

  1. How many subsets of AA contain element 00, do not contain element 77, and contain at least one of the negative elements {−3,−1}\{-3, -1\}?
  2. What is the radius of the smallest circle in the coordinate plane that encloses all points of A×BA \times B?

Solution:

  1. Here s(A)=7s(A) = 7. First, lock the two mandatory conditions: 00 must be included and 77 must be excluded. That removes 22 elements from consideration, leaving 7−2=57 - 2 = 5 free elements {−3,−1,2,4,5}\{-3, -1, 2, 4, 5\}, which generate 25=322^5 = 32 subsets. From these 3232 subsets, subtract those that contain neither −3-3 nor −1-1. Locking −3-3 and −1-1 out leaves only {2,4,5}\{2, 4, 5\} (33 free elements), or 23=82^3 = 8 subsets. Thus, 32−8=2432 - 8 = \mathbf{24} subsets satisfy all constraints.
  2. For A×BA \times B, the horizontal span is Δxmax⁡=7−(−3)=10\Delta x_{\max} = 7 - (-3) = 10 and the vertical span is Δymax⁡=6−(−2)=8\Delta y_{\max} = 6 - (-2) = 8. The diameter of the smallest enclosing circle is d=102+82=164=241d = \sqrt{10^2 + 8^2} = \sqrt{164} = 2\sqrt{41}, so its radius is R=d2=41R = \frac{d}{2} = \mathbf{\sqrt{41}}.

Worked Example 2: Abstract Binary Operation & Modular Exponent Reduction

Problem:

  1. On R\mathbb{R}, define x⋆y=x+y−12xyx \star y = x + y - \frac{1}{2}xy. Find the identity element ee, the absorbing element yy, and the inverse 6−16^{-1}.
  2. Find the remainder when 20272026+191032027^{2026} + 19^{103} is divided by 1010.

Solution:

  1. Set x⋆e=xx \star e = x:
x+e−12xe=x  ⟹  e(1−x2)=0  ⟹  e=0x + e - \frac{1}{2}xe = x \implies e\left(1 - \frac{x}{2}\right) = 0 \implies e = \mathbf{0}

The factor 1−x21 - \frac{x}{2} vanishes when x=2x = \mathbf{2}, which is the absorbing element (indeed, 2⋆y=2+y−y=22 \star y = 2 + y - y = 2 for every yy). Now find 6−16^{-1} using 6⋆6−1=e=06 \star 6^{-1} = e = 0:

6+6−1−12(6)(6−1)=0  ⟹  6−2(6−1)=0  ⟹  6−1=36 + 6^{-1} - \frac{1}{2}(6)(6^{-1}) = 0 \implies 6 - 2(6^{-1}) = 0 \implies 6^{-1} = \mathbf{3}
  1. Modulo 1010, we already know 20272026≡74(506)+2≡72≡9(mod10)2027^{2026} \equiv 7^{4(506)+2} \equiv 7^2 \equiv 9 \pmod{10}. For the second term, 19≡−1(mod10)19 \equiv -1 \pmod{10}, so 19103≡(−1)103=−1(mod10)19^{103} \equiv (-1)^{103} = -1 \pmod{10}. Adding the two gives 9+(−1)≡8(mod10)9 + (-1) \equiv \mathbf{8} \pmod{10}.

If the base and modulus are not coprime, a power need not return to 1. For example 2N2^N modulo 8 is 0 for all N≥3N\ge3. Track the initial nonrepeating terms before any eventual cycle. For a noncommutative operation, identity, inverse and absorbing conditions must hold on both sides. An identity-row factor vanishing does not by itself prove absorption; substitute the proposed element into the operation and check the defining conditions.

Review the Method

In modular arithmetic, large exponents are reduced by finding the smallest positive period k where a^k ≡ 1 (mod m), provided gcd(a,m)=1 and replacing the exponent with its remainder modulo k.

Test Your Knowledge

Given the 8-element set A={a,b,c,d,e,f,g,h}A = \{a, b, c, d, e, f, g, h\}, how many subsets of AA do NOT contain cc, yet contain at least one of the elements aa or bb?

A

6464

B

8080

C

9696

D

112112

Test Your Knowledge

In a group of 4242 students, every student speaks at least one of English (EE) or German (GG). If s(E∖G)=2⋅s(G∖E)s(E \setminus G) = 2 \cdot s(G \setminus E) and s(E∩G)=12s(E \cap G) = 12, how many students in total speak English, s(E)s(E)?

A

3232

B

2828

C

2222

D

2020

Test Your Knowledge

On the set of real numbers, a binary operation is defined by x⋆y=x+y+2xyx \star y = x + y + 2xy. What is the inverse of x=2x = 2 under the operation ⋆\star?

A

−12-\frac{1}{2}

B

−52-\frac{5}{2}

C

25\frac{2}{5}

D

−25-\frac{2}{5}

Test Your Knowledge

What is the remainder when 4101+6504^{101} + 6^{50} is divided by 77?

A

11

B

33

C

44

D

66

Sections you finish are checked off in the contents.