Comprehensive Discrete Mathematics Study Notes

SET THEORY, RELATIONS, AND FUNCTIONS

  • Fundamental Definitions and Representations of Sets:

    • A set is a well-defined collection of distinct and distinguishable objects. These objects are referred to as the elements or members of the set.

    • Alternative characterization: A group of items possessing one or more common characteristics.

    • Set Notations and Representations:

    • Tabular (Roster) Form: Each member of the set is explicitly listed individually inside curly braces {… }\lbrace \dots \rbrace, typically designated by capital letters such as AA, BB, or SS.

      • Example: The set of even integers from 00 to 1010 is written as:         S={0,2,4,6,8,10}S = \lbrace 0, 2, 4, 6, 8, 10 \rbrace

    • Symbolic (Set-Builder) Form: A representative variable nn is enclosed within curly braces representing each member, followed by a predicate specifying the essential properties possessed by nn.

      • Example: The set of odd integers up to 1010 is defined as:         S={n:n is an odd integer,n<11}S = \lbrace n : n \text{ is an odd integer}, n < 11 \rbrace         S={n:n(mod2)≠0,n<11}S = \lbrace n : n \pmod 2 \neq 0, n < 11 \rbrace

  • Example: Writing the alternating signed sequence A={2,−2,3,−3,4,−4,… }A = \lbrace 2, -2, 3, -3, 4, -4, \dots \rbrace in set-builder notation:   A={x:x=n or x=−n for n∈Z and x∉{0,1,−1}}A = \lbrace x : x = n \text{ or } x = -n \text{ for } n \in \mathbb{Z} \text{ and } x \notin \lbrace 0, 1, -1 \rbrace \rbrace

    • Cardinality of a Set:

    • The total number of unique elements contained within a set is termed its cardinality, denoted n(A)n(A) or ∣A∣|A|.

    • Example: For the vowel alphabet set V={a,e,i,o,u}V = \lbrace a, e, i, o, u \rbrace, the total number of vowels is 55, hence ∣V∣=5|V| = 5.

  • Classification of Sets:

    • Singleton Set: A set containing exactly one element.

    • Example: Odd integers between 44 and 66: S={5}={n:n(mod2)≠0,4≤n<6}S = \lbrace 5 \rbrace = \lbrace n : n \pmod 2 \neq 0, 4 \le n < 6 \rbrace.

  • Pair Set: A set containing exactly two distinct members, such as A={2,3}A = \lbrace 2, 3 \rbrace.

  • Finite Set: A set containing a countable, finite number of elements where the counting process terminates.

    • Example: A={1,2,3,4}A = \lbrace 1, 2, 3, 4 \rbrace or A={n:n is an even integer,n<1000}A = \lbrace n : n \text{ is an even integer}, n < 1000 \rbrace.

  • Infinite Set: A set containing infinitely many members where counting cannot be completed.

    • Example: The set of all natural numbers A={n:n∈N}A = \lbrace n : n \in \mathbb{N} \rbrace.

  • Null (Empty or Void) Set: A set containing no elements, denoted by ϕ\phi or {}\lbrace \rbrace.

    • Example: ϕ={n:n(mod2)=0,4<n<6}\phi = \lbrace n : n \pmod 2 = 0, 4 < n < 6 \rbrace.

  • Subset (⊆\subseteq): Set BB is a subset of set AA if every element belonging to BB also belongs to AA.

    • If A={1,2,3,4}A = \lbrace 1, 2, 3, 4 \rbrace and B={1,2,3}B = \lbrace 1, 2, 3 \rbrace, then B⊆AB \subseteq A.

    • If A={1,2,3}A = \lbrace 1, 2, 3 \rbrace and B={2,1,3}B = \lbrace 2, 1, 3 \rbrace, then B⊆AB \subseteq A and A⊆BA \subseteq B.

  • Proper Subset (⊂\subset): Set BB is a proper subset of AA if all elements of BB lie within AA, and there exists at least one element in AA that does not belong to BB (B⊂AB \subset A with B≠AB \neq A).

    • Example: If A={1,2,3,4,5}A = \lbrace 1, 2, 3, 4, 5 \rbrace and B={1,2,3,4}B = \lbrace 1, 2, 3, 4 \rbrace, then B⊂AB \subset A.

  • Improper Subset: A subset BB of AA is improper if BB contains the exact same elements as AA (i.e., B=AB = A).

  • Universal Set (UU): A comprehensive superset that contains all elements and all subsets under consideration.

    • Example: If A={1,2}A = \lbrace 1, 2 \rbrace, B={4,5,6,7}B = \lbrace 4, 5, 6, 7 \rbrace, C={8}C = \lbrace 8 \rbrace, and D={10,11,14,15}D = \lbrace 10, 11, 14, 15 \rbrace, then a universal set is U={1,2,4,5,6,7,8,9,10,11,14,15}U = \lbrace 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15 \rbrace.

  • Power Set (P(A)P(A) or P(A)\mathcal{P}(A)):

    • The family of all possible subsets of a set SS, including the empty set ϕ\phi and the set SS itself: P(S)={T:T⊆S}P(S) = \lbrace T : T \subseteq S \rbrace.

    • For any finite set containing nn elements, its power set contains precisely 2n2^n elements: ∣P(S)∣=2n|P(S)| = 2^n.

    • Example: For A={1,2}A = \lbrace 1, 2 \rbrace: P(A)={ϕ,{1},{2},{1,2}}P(A) = \lbrace \phi, \lbrace 1 \rbrace, \lbrace 2 \rbrace, \lbrace 1, 2 \rbrace \rbrace, where ∣P(A)∣=22=4|P(A)| = 2^2 = 4.

    • Example: For X={1,2,3}X = \lbrace 1, 2, 3 \rbrace: P(X)={ϕ,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}P(X) = \lbrace \phi, \lbrace 1 \rbrace, \lbrace 2 \rbrace, \lbrace 3 \rbrace, \lbrace 1, 2 \rbrace, \lbrace 1, 3 \rbrace, \lbrace 2, 3 \rbrace, \lbrace 1, 2, 3 \rbrace \rbrace, where n(P(X))=23=8n(P(X)) = 2^3 = 8.

    • Example: For A={a,{b}}A = \lbrace a, \lbrace b \rbrace \rbrace: P(A)={ϕ,{a},{{b}},{a,{b}}}P(A) = \lbrace \phi, \lbrace a \rbrace, \lbrace \lbrace b \rbrace \rbrace, \lbrace a, \lbrace b \rbrace \rbrace \rbrace.

  • Complement of a Set (S′S' or ScS^c): All elements belonging to the universal set UU that do not belong to SS: S′={n:n∈U,n∉S}S' = \lbrace n : n \in U, n \notin S \rbrace.

    • Example: If U={1,2,3,4,5,6,7}U = \lbrace 1, 2, 3, 4, 5, 6, 7 \rbrace and S={1,4,7}S = \lbrace 1, 4, 7 \rbrace, then S′={2,3,5,6}S' = \lbrace 2, 3, 5, 6 \rbrace.

    • Disjoint Sets: Two sets AA and BB are mutually exclusive or disjoint if they share no common elements, meaning A∩B=ϕA \cap B = \phi.

    • Example: A={1,2,3}A = \lbrace 1, 2, 3 \rbrace and B={4,5,6,7,8}B = \lbrace 4, 5, 6, 7, 8 \rbrace.

  • Set Operations and Algebraic Identities:

    • Union (∪\cup): Contains elements that are in AA, in BB, or in both: A∪B={n:n∈A∨n∈B}A \cup B = \lbrace n : n \in A \lor n \in B \rbrace.

    • Intersection (∩\cap): Contains elements common to both sets: A∩B={n:n∈A∧n∈B}A \cap B = \lbrace n : n \in A \land n \in B \rbrace.

    • Difference (−- or ∖\setminus): Elements existing in the first set but absent from the second:     A−B={n:n∈A∧n∉B}=A∩B′A - B = \lbrace n : n \in A \land n \notin B \rbrace = A \cap B'     B−A={n:n∈B∧n∉A}=B∩A′B - A = \lbrace n : n \in B \land n \notin A \rbrace = B \cap A'

    • Condition for Equality of Differences: A−B=B−AA - B = B - A holds if and only if A=BA = B, resulting in A−B=B−A=ϕA - B = B - A = \phi.

  • Cartesian Product (×\times): The collection of all ordered pairs (a,b)(a, b) such that the first coordinate is from AA and the second from BB:   A×B={(a,b):a∈A∧b∈B}A \times B = \lbrace (a, b) : a \in A \land b \in B \rbrace

    • If ∣A∣=m|A| = m and ∣B∣=n|B| = n, then ∣A×B∣=mn|A \times B| = mn.

    • Worked Example: If A={1,2}A = \lbrace 1, 2 \rbrace and B={3,4}B = \lbrace 3, 4 \rbrace, then A×B={(1,3),(1,4),(2,3),(2,4)}A \times B = \lbrace (1, 3), (1, 4), (2, 3), (2, 4) \rbrace.

    • Worked Example: If U={1,2,3,4,5,6,7,8}U = \lbrace 1, 2, 3, 4, 5, 6, 7, 8 \rbrace, A={2,4,6,8}A = \lbrace 2, 4, 6, 8 \rbrace, and B={3,5,6,7}B = \lbrace 3, 5, 6, 7 \rbrace:     A×B={(2,3),(2,5),(2,6),(2,7),(4,3),(4,5),(4,6),(4,7),(6,3),(6,5),(6,6),(6,7),(8,3),(8,5),(8,6),(8,7)}A \times B = \lbrace (2, 3), (2, 5), (2, 6), (2, 7), (4, 3), (4, 5), (4, 6), (4, 7), (6, 3), (6, 5), (6, 6), (6, 7), (8, 3), (8, 5), (8, 6), (8, 7) \rbrace     A−B={2,4,8}A - B = \lbrace 2, 4, 8 \rbrace

  • Fundamental Laws of Set Theory:

    • Commutative Laws: A∪B=B∪AA \cup B = B \cup A and A∩B=B∩AA \cap B = B \cap A.

    • Proof of A∪B=B∪AA \cup B = B \cup A: Let n∈(A∪B)  ⟹  n∈A∨n∈B  ⟹  n∈B∨n∈A  ⟹  n∈(B∪A)n \in (A \cup B) \implies n \in A \lor n \in B \implies n \in B \lor n \in A \implies n \in (B \cup A). Hence A∪B⊆B∪AA \cup B \subseteq B \cup A. By symmetry, B∪A⊆A∪BB \cup A \subseteq A \cup B, therefore A∪B=B∪AA \cup B = B \cup A.

    • Idempotent Laws: A∪A=AA \cup A = A and A∩A=AA \cap A = A.

    • Associative Laws: A∪(B∪C)=(A∪B)∪CA \cup (B \cup C) = (A \cup B) \cup C and A∩(B∩C)=(A∩B)∩CA \cap (B \cap C) = (A \cap B) \cap C.

    • Distributive Laws:     A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)     A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)

    • De Morgan's Laws:     (A∪B)′=A′∩B′(A \cup B)' = A' \cap B'     (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'

    • Detailed Proof of (A∪B)′=A′∩B′(A \cup B)' = A' \cap B':

      • Let x∈(A∪B)′  ⟹  x∉(A∪B)  ⟹  x∉A∧x∉B  ⟹  x∈A′∧x∈B′  ⟹  x∈(A′∩B′)x \in (A \cup B)' \implies x \notin (A \cup B) \implies x \notin A \land x \notin B \implies x \in A' \land x \in B' \implies x \in (A' \cap B'). Thus (A∪B)′⊆(A′∩B′)(A \cup B)' \subseteq (A' \cap B').

  • Conversely, let y∈(A′∩B′)  ⟹  y∈A′∧y∈B′  ⟹  y∉A∧y∉B  ⟹  y∉(A∪B)  ⟹  y∈(A∪B)′y \in (A' \cap B') \implies y \in A' \land y \in B' \implies y \notin A \land y \notin B \implies y \notin (A \cup B) \implies y \in (A \cup B)' . Thus (A′∩B′)⊆(A∪B)′(A' \cap B') \subseteq (A \cup B)'. * Combining both inclusions yields (A∪B)′=A′∩B′(A \cup B)' = A' \cap B'.

  • Complement Properties:       A∪A′=UA \cup A' = U       A∩A′=ϕA \cap A' = \phi

  • Difference Identities:       A−(A∩B)=A−BA - (A \cap B) = A - B       A−(B∪C)=(A−B)∩(A−C)A - (B \cup C) = (A - B) \cap (A - C)       A−(B∩C)=(A−B)∪(A−C)A - (B \cap C) = (A - B) \cup (A - C)

    • Demonstration: If A={1,2,3,4,5}A = \lbrace 1, 2, 3, 4, 5 \rbrace and B={2,3,4,6}B = \lbrace 2, 3, 4, 6 \rbrace, then A∩B={2,3,4}A \cap B = \lbrace 2, 3, 4 \rbrace. Consequently, A−(A∩B)={1,5}A - (A \cap B) = \lbrace 1, 5 \rbrace and A−B={1,5}A - B = \lbrace 1, 5 \rbrace, verifying equality.

  • Venn Diagrams:

    • Conceived around 1880 by John Venn, these diagrams represent classes or sets as closed planar regions (typically circles) situated within an enclosing bounding box representing the universal set UU.

    • Distinct from general Euler diagrams because Venn diagrams leave room for every theoretically possible intersection or logical relationship among the sets, allowing specific areas to be marked as null or non-null.

    • Area-Proportional (Scaled) Venn Diagram: A Venn diagram in which the geometric area of each shape is proportional to the number of elements (cardinality) it contains.

Venn Diagrams for Relative and Absolute Complements
  • Set-Theoretic Counting (Inclusion-Exclusion Principle):     n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

    • Application 1: Out of 10001000 surveyed consumers, 720720 liked product XX and 450450 liked product YY. The minimum number who liked both products is:       1000=720+450−n(X∩Y)  ⟹  n(X∩Y)=1170−1000=1701000 = 720 + 450 - n(X \cap Y) \implies n(X \cap Y) = 1170 - 1000 = 170

    • Application 2: In a class of 120120 students, 8080 study mathematics, 4545 study history, and 3030 study both. The number studying neither subject is:       n(M∪H)=80+45−30=95n(M \cup H) = 80 + 45 - 30 = 95       n((M∪H)′)=120−95=25n((M \cup H)') = 120 - 95 = 25

    • Binary Relations:

  • A binary relation RR from set AA to set BB is formally defined as any arbitrary subset of the Cartesian product A×BA \times B (R⊆A×BR \subseteq A \times B). If (a,b)∈R(a, b) \in R, it is written as aRba R b ("aa is related to bb by RR").

  • Counting Relations: For sets with ∣A∣=m|A| = m and ∣B∣=n|B| = n, ∣A×B∣=mn|A \times B| = mn. Since any subset of A×BA \times B is a relation, the total number of distinct relations is 2mn2^{mn}.

  • Void / Null Relation: The empty set ϕ⊆A×B\phi \subseteq A \times B.

  • Universal Relation: The full Cartesian product A×B⊆A×BA \times B \subseteq A \times B.

  • Relation Matrix (Adjacency Matrix): For sets X={x1,x2,…,xm}X = \lbrace x_1, x_2, \dots, x_m \rbrace and Y={y1,y2,…,yn}Y = \lbrace y_1, y_2, \dots, y_n \rbrace, the relation matrix MR=[aij]m×nM_R = [a_{ij}]_{m \times n} is defined by:     aij={1if (xi,yj)∈R0if (xi,yj)∉Ra_{ij} = \begin{cases} 1 & \text{if } (x_i, y_j) \in R \\ 0 & \text{if } (x_i, y_j) \notin R \end{cases}

    • Example: For A={1,2,3}A = \lbrace 1, 2, 3 \rbrace, B={2,4}B = \lbrace 2, 4 \rbrace, and R={(x,y):x<y}={(1,2),(1,4),(2,4),(3,4)}R = \lbrace (x, y) : x < y \rbrace = \lbrace (1, 2), (1, 4), (2, 4), (3, 4) \rbrace, the relation matrix is:       MR=(110101)M_R = \begin{pmatrix} 1 & 1 \\ 0 & 1 \\ 0 & 1 \end{pmatrix}

  • Domain and Range of a Relation:

    • Domain(R)={a∈A:(a,b)∈R for some b∈B}\text{Domain}(R) = \lbrace a \in A : (a, b) \in R \text{ for some } b \in B \rbrace

    • Range(R)={b∈B:(a,b)∈R for some a∈A}\text{Range}(R) = \lbrace b \in B : (a, b) \in R \text{ for some } a \in A \rbrace

    • Properties of Relations on a Set AA:

  • Reflexive: For all a∈Aa \in A, (a,a)∈R(a, a) \in R.

  • Symmetric: Whenever (a,b)∈R(a, b) \in R, then (b,a)∈R(b, a) \in R.

  • Asymmetric: Whenever (a,b)∈R(a, b) \in R, then (b,a)∉R(b, a) \notin R.

  • Antisymmetric: Whenever (a,b)∈R(a, b) \in R and (b,a)∈R(b, a) \in R, then a=ba = b.

  • Transitive: Whenever (a,b)∈R(a, b) \in R and (b,c)∈R(b, c) \in R, then (a,c)∈R(a, c) \in R.

  • Identity Relation (IAI_A): IA={(a,a):a∈A}I_A = \lbrace (a, a) : a \in A \rbrace. Every identity relation is reflexive, but a reflexive relation may strictly contain other elements, meaning IA⊆RI_A \subseteq R.

  • Equivalence Relation: A relation that is simultaneously reflexive, symmetric, and transitive.

    • Theorem: If RR is an equivalence relation on AA, its inverse relation R−1={(b,a):(a,b)∈R}R^{-1} = \lbrace (b, a) : (a, b) \in R \rbrace is also an equivalence relation on AA.

      • Reflexivity: Since (a,a)∈R  ⟹  (a,a)∈R−1(a, a) \in R \implies (a, a) \in R^{-1}.

      • Symmetry: (a,b)∈R−1  ⟹  (b,a)∈R  ⟹  (a,b)∈R  ⟹  (b,a)∈R−1(a, b) \in R^{-1} \implies (b, a) \in R \implies (a, b) \in R \implies (b, a) \in R^{-1}.

      • Transitivity: Let (a,b)∈R−1(a, b) \in R^{-1} and (b,c)∈R−1  ⟹  (b,a)∈R(b, c) \in R^{-1} \implies (b, a) \in R and (c,b)∈R  ⟹  (c,a)∈R  ⟹  (a,c)∈R−1(c, b) \in R \implies (c, a) \in R \implies (a, c) \in R^{-1}.

    • Concrete Equivalence Relation Examples:

      • Congruence modulo mm on Z\mathbb{Z}: x≡y(modm)  ⟺  m∣(x−y)x \equiv y \pmod m \iff m \mid (x - y).

      • Congruence modulo 55 produces 55 disjoint equivalence classes:         [0]={…,−10,−5,0,5,10,… }[0] = \lbrace \dots, -10, -5, 0, 5, 10, \dots \rbrace         [1]={…,−9,−4,1,6,11,… }[1] = \lbrace \dots, -9, -4, 1, 6, 11, \dots \rbrace         [2]={…,−8,−3,2,7,12,… }[2] = \lbrace \dots, -8, -3, 2, 7, 12, \dots \rbrace         [3]={…,−7,−2,3,8,13,… }[3] = \lbrace \dots, -7, -2, 3, 8, 13, \dots \rbrace         [4]={…,−6,−1,4,9,14,… }[4] = \lbrace \dots, -6, -1, 4, 9, 14, \dots \rbrace         Z/R={[0],[1],[2],[3],[4]}\mathbb{Z}/R = \lbrace [0], [1], [2], [3], [4] \rbrace

      • Parity relation on integers: xRy  ⟺  (x−y) is evenx R y \iff (x - y) \text{ is even}.

      • Equality of string length on words: l(a)=l(b)l(a) = l(b).

  • Composite Relations:

    • Given R⊆A×BR \subseteq A \times B and S⊆B×CS \subseteq B \times C, the composition S∘R⊆A×CS \circ R \subseteq A \times C consists of all (a,c)(a, c) such that there exists some b∈Bb \in B with (a,b)∈R(a, b) \in R and (b,c)∈S(b, c) \in S.

    • Reversal Law: (S∘R)−1=R−1∘S−1(S \circ R)^{-1} = R^{-1} \circ S^{-1}.

    • Functions and Mappings:

  • A function f:X→Yf: X \to Y is a special relation such that every element x∈Xx \in X serves as the first coordinate in exactly one ordered pair (x,y)∈f(x, y) \in f.

  • Vertical Line Test: A vertical line passing through any point of the domain must intersect the graph of a function exactly once.

  • Key Distinction from Relations: A relation can be one-to-one, one-to-many, many-to-one, or many-to-many. A function can never be one-to-many.

Difference Between Relation and Function
  • Types of Functions:

    • Injective (One-to-One / Injection): For every y∈Yy \in Y, there exists at most one x∈Xx \in X such that f(x)=yf(x) = y (f(x1)=f(x2)  ⟹  x1=x2f(x_1) = f(x_2) \implies x_1 = x_2). A horizontal line intersects the graph at most once.

    • Surjective (Onto / Surjection): For every y∈Yy \in Y, there exists at least one x∈Xx \in X such that f(x)=yf(x) = y, meaning Range(f)=Co-domain(Y)\text{Range}(f) = \text{Co-domain}(Y). A horizontal line intersects the graph at least once.

    • Bijective (One-to-One Onto / Bijection): Simultaneously injective and surjective. A horizontal line intersects the graph exactly once.

  • Invertibility of Functions:

    • A function f:P→Qf: P \to Q possesses an inverse mapping f−1:Q→Pf^{-1}: Q \to P if and only if ff is bijective.

    • If f:P→Qf: P \to Q is one-to-one and onto, then f−1:Q→Pf^{-1}: Q \to P is also one-to-one and onto.

    • For bijective functions f:A→Bf: A \to B and g:B→Cg: B \to C, the composite function (g∘f):A→C(g \circ f): A \to C is bijective, and its inverse satisfies:     (g∘f)−1=f−1∘g−1(g \circ f)^{-1} = f^{-1} \circ g^{-1}

  • Recursively Defined Functions:

    • A definition consisting of two core parts: a base case specifying the initial value (e.g., f(0)f(0)) and a recursive step defining f(n)f(n) in terms of previously evaluated values (e.g., f(n−1)f(n-1)).

    • Example: Recursive sequence f(0)=5f(0) = 5, f(n)=f(n−1)+2f(n) = f(n-1) + 2. Unrolling values gives f(0)=5f(0) = 5, f(1)=7f(1) = 7, f(2)=9f(2) = 9, f(3)=11f(3) = 11, matching the closed form f(n)=2n+5f(n) = 2n + 5 for non-negative integers.

    • Example: Two-variable recursive function:     Q(a,b)={5if a<bQ(a−b,b+2)+aif a≥bQ(a, b) = \begin{cases} 5 & \text{if } a < b \\ Q(a - b, b + 2) + a & \text{if } a \ge b \end{cases}

    • Evaluation of Q(2,7)=5Q(2, 7) = 5 (since 2<72 < 7).

    • Evaluation of Q(5,3)=Q(2,5)+5=5+5=10Q(5, 3) = Q(2, 5) + 5 = 5 + 5 = 10.

    • Evaluation of Q(15,2)=Q(13,4)+15=Q(9,6)+13+15=Q(3,8)+9+28=5+37=42Q(15, 2) = Q(13, 4) + 15 = Q(9, 6) + 13 + 15 = Q(3, 8) + 9 + 28 = 5 + 37 = 42.

  • Countable and Infinite Sets:

    • A set AA is countably infinite (denumerable) if there exists a bijective correspondence between AA and the set of natural numbers N\mathbb{N}.

    • Theorem: The countable union of countably infinite sets is countably infinite.

POSETS, LATTICES, AND BOOLEAN ALGEBRA

  • Partially Ordered Sets (Posets):

    • A relation RR on a set SS is a partial ordering if it satisfies reflexivity, antisymmetry, and transitivity. The structure (S,R)(S, R) or (S,≤)(S, \le) is called a poset.

    • Linearly Ordered Set (Totally Ordered Set / Chain): A poset (S,≤)(S, \le) that satisfies the comparability (trichotomy) condition: for every pair a,b∈Sa, b \in S, either a≤ba \le b or b≤ab \le a.

    • Product of Posets: If (A,≤)(A, \le) and (B,≤)(B, \le) are posets, then (A×B,≤)(A \times B, \le) is a poset under the product partial order defined by (a,b)≤(a′,b′)  ⟺  a≤a′ in A∧b≤b′ in B(a, b) \le (a', b') \iff a \le a' \text{ in } A \land b \le b' \text{ in } B.

  • Poset Bounds and Hasse Diagrams:

    • Covering Relation: An element bb covers an element aa (a≺ba \prec b) if a<ba < b and there is no intermediate element cc such that a<c<ba < c < b.

    • Hasse Diagram: A graphical representation of a finite poset where elements are vertices and an upward edge connects aa to bb whenever bb covers aa. Transitive and reflexive edges are omitted.

    • Poset Elements Terminology:

    • Maximal Element: An element m∈Sm \in S such that no element x∈Sx \in S satisfies m<xm < x.

    • Minimal Element: An element m∈Sm \in S such that no element x∈Sx \in S satisfies x<mx < m.

    • Greatest Element (Top / Last Element / 11): An element u∈Su \in S such that x≤ux \le u for all x∈Sx \in S.

    • Least Element (Bottom / First Element / 00): An element l∈Sl \in S such that l≤xl \le x for all x∈Sx \in S.

    • Upper Bound / Lower Bound: For a subset A⊆SA \subseteq S, uu is an upper bound if x≤ux \le u for all x∈Ax \in A; ll is a lower bound if l≤xl \le x for all x∈Ax \in A.

    • Least Upper Bound (LUB / Supremum / Join / ∨\vee): An upper bound that is less than or equal to all other upper bounds.

    • Greatest Lower Bound (GLB / Infimum / Meet / ∧\wedge): A lower bound that is greater than or equal to all other lower bounds.

Hasse Diagrams for D24 and D15Hasse Diagram for Power Set Lattice of Three Elements
  • Lattices:

    • A poset (L,≤)(L, \le) is a lattice if every two-element subset {a,b}⊆L\lbrace a, b \rbrace \subseteq L possesses a unique least upper bound (a∨ba \vee b) and a unique greatest lower bound (a∧ba \wedge b).

    • Algebraic Properties of Lattices:

    • Idempotent: a∧a=aa \wedge a = a, a∨a=aa \vee a = a

    • Commutative: a∧b=b∧aa \wedge b = b \wedge a, a∨b=b∨aa \vee b = b \vee a

    • Associative: a∧(b∧c)=(a∧b)∧ca \wedge (b \wedge c) = (a \wedge b) \wedge c, a∨(b∨c)=(a∨b)∨ca \vee (b \vee c) = (a \vee b) \vee c

    • Absorption: a∧(a∨b)=aa \wedge (a \vee b) = a, a∨(a∧b)=aa \vee (a \wedge b) = a

    • Distributive Inequality: For any elements in a lattice:       a≤c  ⟹  a∨(b∧c)≤(a∨b)∧ca \le c \implies a \vee (b \wedge c) \le (a \vee b) \wedge c

    • Duality Principle: Any true statement in lattice theory remains valid when ≤\le is exchanged with ≥\ge, and ∨\vee (join) is exchanged with ∧\wedge (meet).

    • Classes of Lattices:

    • Bounded Lattice: Contains a global least element 00 and a global greatest element 11 such that for all a∈La \in L:       a∧0=0,a∨0=a,a∧1=a,a∨1=1a \wedge 0 = 0, \quad a \vee 0 = a, \quad a \wedge 1 = a, \quad a \vee 1 = 1

    • Distributive Lattice: The operations of join and meet distribute across one another:       a∧(b∨c)=(a∧b)∨(a∧c)a \wedge (b \vee c) = (a \wedge b) \vee (a \wedge c)       a∨(b∧c)=(a∨b)∧(a∨c)a \vee (b \wedge c) = (a \vee b) \wedge (a \vee c)

    • Complemented Lattice: A bounded lattice where every element aa has at least one complement bb satisfying:       a∨b=1anda∧b=0a \vee b = 1 \quad \text{and} \quad a \wedge b = 0

    • Uniquely Complemented Lattice: A lattice in which every element possesses exactly one unique complement. In every bounded distributive lattice, complements (if they exist) are unique.

  • Boolean Algebra:

    • A Boolean algebra is an algebraic structure (B,+,⋅,′,0,1)(B, +, \cdot, ', 0, 1) consisting of a set BB, two binary operations ++ (logical OR / join) and ⋅\cdot (logical AND / meet), a unary operation ′' (complement), and two special elements 00 (zero element) and 11 (identity/unity element), satisfying the postulates of commutativity, distributivity, identity, and complementation.

    • Alternatively, a finite lattice is a Boolean algebra if and only if it is isomorphic to the hypercube lattice BnB_n for some integer n≥0n \ge 0, possessing exactly 2n2^n elements.

    • Core Boolean Algebra Theorems:

    • Involution: (a′)′=a(a')' = a

    • Bounds Complement: 0′=10' = 1 and 1′=01' = 0

    • De Morgan's Laws:       (a+b)′=a′⋅b′(a + b)' = a' \cdot b'       (a⋅b)′=a′+b′(a \cdot b)' = a' + b'

      • Proof of (a+b)′=a′⋅b′(a + b)' = a' \cdot b': Show that (a+b)+a′b′=1(a + b) + a'b' = 1 and (a+b)⋅(a′b′)=0(a + b) \cdot (a'b') = 0:         (a+b)+a′b′=[(a+b)+a′][(a+b)+b′]=[1+b][a+1]=1⋅1=1(a + b) + a'b' = [(a + b) + a'][ (a + b) + b'] = [1 + b][a + 1] = 1 \cdot 1 = 1         (a+b)⋅(a′b′)=a(a′b′)+b(a′b′)=(aa′)b′+(bb′)a′=0⋅b′+0⋅a′=0+0=0(a + b) \cdot (a'b') = a(a'b') + b(a'b') = (aa')b' + (bb')a' = 0 \cdot b' + 0 \cdot a' = 0 + 0 = 0

    • Equality Identity: In a Boolean algebra, if a=ba = b, then a⋅b′+a′⋅b=0a \cdot b' + a' \cdot b = 0.

  • Boolean Functions, Canonical Forms, and Minimization:

    • Literal: A variable xx or its complement x′x'.

    • Minterm: A product (AND) of all literals in the function, where each variable appears exactly once either uncomplemented or complemented.

    • Maxterm: A sum (OR) of all literals in the function, where each variable appears exactly once either uncomplemented or complemented.

    • Disjunctive Normal Form (DNF / Sum of Products SOP): An expression formed by OR-ing minterms.

    • Conjunctive Normal Form (CNF / Product of Sums POS): An expression formed by AND-ing maxterms.

    • Karnaugh Map (K-map): A visual grid technique for Boolean function simplification based on Gray code adjacency (00,01,11,1000, 01, 11, 10).

    • Total cells for NN variables: 2N2^N.

    • Rectangular groups of adjacent cells containing 11s (for SOP) or 00s (for POS) must be formed in powers of two (1,2,4,8,161, 2, 4, 8, 16).

    • Wrap-around/folding across top-bottom and left-right borders is permitted.

K-map and Hasse Diagram for Divisors of 30Four-Variable Karnaugh Map Optimization
  • Worked K-Map Reductions:

    • Four-variable function F(A,B,C,D)=∑(0,2,7,8,10,15)F(A, B, C, D) = \sum(0, 2, 7, 8, 10, 15):

      • Group 1: Four corners cells (0,2,8,10)(0, 2, 8, 10) simplify to B′D′B'D'.

      • Group 2: Cells (7,15)(7, 15) simplify to BCDBCD.

      • Minimal Expression: F=B′D′+BCDF = B'D' + BCD.

    • Four-variable function E(x,y,z,t)=y′t′+y′z′t+x′y′zt+yzt′E(x, y, z, t) = y't' + y'z't + x'y'zt + yzt':

      • Minimal SOP: E=x′y′+y′z′+zt′E = x'y' + y'z' + zt'.

    • Logic Gates and Switching Circuits:

  • Basic Gates:

    • OR Gate: Computes logical addition (Y=A+BY = A + B). Outputs 11 if one or more inputs are 11.

    • AND Gate: Computes logical multiplication (Y=A⋅BY = A \cdot B). Outputs 11 if and only if all inputs are 11.

    • NOT Gate (Inverter): Computes complementation (Y=A′Y = A'). Outputs the opposite logical state of the input.

  • Universal Gate Implementations:

    • Any SOP expression can be implemented exclusively using NAND gates.

    • Any POS expression can be implemented exclusively using NOR gates.

Product of Sums Implementation Using NOR Gates

PROPOSITIONAL AND PREDICATE LOGIC

  • Propositions and Connectives:

    • A proposition (or statement) is a declarative sentence that is either definitively True (TT) or definitively False (FF), but never both simultaneously.

    • Non-propositions include imperatives, wishes, questions, or exclamations (e.g., "May God Bless you", "Please Wait").

    • Atomic vs. Molecular Statements: Atomic statements contain no logical connectives. Molecular (compound) statements are constructed by joining atomic statements using logical connectives.

    • Truth Tables of Core Connectives:

    • Negation (¬\neg or ∼\sim): Inverts the truth value (¬T=F\neg T = F, ¬F=T\neg F = T).

  • Conjunction (∧\wedge): P∧QP \wedge Q is True if and only if both PP and QQ are True.

  • Disjunction (∨\vee): P∨QP \vee Q is False if and only if both PP and QQ are False.

  • Conditional (Implication / →\to): P→QP \to Q is False only when the antecedent PP is True and the consequent QQ is False. In all other cases, it is True. Equivalent form:   P→Q≡¬P∨QP \to Q \equiv \neg P \vee Q

    • Biconditional (↔\leftrightarrow): P↔QP \leftrightarrow Q is True when both PP and QQ possess identical truth values. Equivalent form:       P↔Q≡(P→Q)∧(Q→P)P \leftrightarrow Q \equiv (P \to Q) \wedge (Q \to P)

  • Propositional Classifications:

    • Tautology: A statement formula that evaluates to True (TT) for every possible combination of truth assignments to its constituent variables (final truth table column consists exclusively of TTs).

    • Example: P∨¬PP \vee \neg P

  • Example: ((P→(q∧r))→(¬r→¬p))((P \to (q \wedge r)) \to (\neg r \to \neg p)) is a tautology.

    • Example: (p∧q)→(p∨q)(p \wedge q) \to (p \vee q) is a tautology.

  • Contradiction: A statement formula that evaluates to False (FF) for every truth assignment.

    • Example: (p∨q)∧(¬p∧¬q)(p \vee q) \wedge (\neg p \wedge \neg q).

    • Contingency: A formula whose truth table contains both True and False values.

    • Example: ((p→q)∨(q→p))↔p((p \to q) \vee (q \to p)) \leftrightarrow p

  • Variations of Conditional Propositions:

    • Given the primary conditional proposition P→QP \to Q:

    • Converse: Q→PQ \to P

    • Inverse: ¬P→¬Q\neg P \to \neg Q

  • Contrapositive: ¬Q→¬P\neg Q \to \neg P

  • Logical Equivalence Theorems:

    • An implication is logically equivalent to its contrapositive: (P→Q)≡(¬Q→¬P)(P \to Q) \equiv (\neg Q \to \neg P).

  • The converse is logically equivalent to the inverse: (Q→P)≡(¬P→¬Q)(Q \to P) \equiv (\neg P \to \neg Q).

  • Problem: Negation of a conditional statement:   ¬(P→Q)≡P∧¬Q\neg (P \to Q) \equiv P \wedge \neg Q

    • Example: The negation of "If it is raining, then the game is cancelled" is "It is raining and the game is not cancelled".

  • Theory of Inference and Valid Arguments:

    • An argument is a sequence of propositions P1,P2,…,PkP_1, P_2, \dots, P_k called premises followed by a conclusion CC, denoted (P1∧P2∧⋯∧Pk)→C(P_1 \wedge P_2 \wedge \dots \wedge P_k) \to C.

    • An argument is valid if the conclusion is guaranteed to be True whenever all premises are simultaneously True.

    • Fundamental Rules of Inference:

    • Modus Ponens (Law of Detachment):       P→Q,P⊢QP \to Q, \quad P \quad \vdash \quad Q

    • Modus Tollens:       P→Q,¬Q⊢¬PP \to Q, \quad \neg Q \quad \vdash \quad \neg P

  • Hypothetical Syllogism:   P→Q,Q→R⊢P→RP \to Q, \quad Q \to R \quad \vdash \quad P \to R

  • Disjunctive Syllogism:   P∨Q,¬Q⊢PP \vee Q, \quad \neg Q \quad \vdash \quad P

  • Conjunctive Simplification:   P∧Q⊢PP \wedge Q \quad \vdash \quad P

  • Conjunctive Addition:   P,Q⊢P∧QP, \quad Q \quad \vdash \quad P \wedge Q

  • Disjunctive Addition:   P⊢P∨QP \quad \vdash \quad P \vee Q

  • Division into Cases:   P∨Q,P→R,Q→R⊢RP \vee Q, \quad P \to R, \quad Q \to R \quad \vdash \quad R

  • Rule of Contradiction:   ¬P→contradiction⊢P\neg P \to \text{contradiction} \quad \vdash \quad P

  • Predicate Logic and Quantifiers:

    • A predicate is a property or attribute assigned to subjects in an open statement, written P(x)P(x). It becomes a proposition once its variables are bound or instantiated.

    • Quantifiers:

    • Universal Quantifier (∀\forall): Denotes "for all" or "for every". Statement ∀xP(x)\forall x P(x) asserts that P(x)P(x) is true for every element in the domain of discourse.

    • Existential Quantifier (∃\exists): Denotes "there exists" or "for at least one". Statement ∃xP(x)\exists x P(x) asserts that P(x)P(x) is true for at least one element in the domain.

    • Negation of Quantified Statements:     ¬(∀xP(x))≡∃x¬P(x)\neg (\forall x P(x)) \equiv \exists x \neg P(x)     ¬(∃xP(x))≡∀x¬P(x)\neg (\exists x P(x)) \equiv \forall x \neg P(x)

  • Example: The negation of "For all real xx, if x>3x > 3 then x2>9x^2 > 9" is:   ∃x(x>3∧x2≤9)\exists x (x > 3 \wedge x^2 \le 9)

ALGEBRAIC STRUCTURES

  • Hierarchy of Algebraic Systems:

    • An algebraic structure (S,∗)(S, *) consists of a non-empty carrier set SS equipped with one or more operational laws satisfying formal algebraic axioms.

    • Semi-Group: An algebraic system (S,∗)(S, *) satisfying:

    • Closure: For all a,b∈Sa, b \in S, a∗b∈Sa * b \in S.

    • Associativity: For all a,b,c∈Sa, b, c \in S, (a∗b)∗c=a∗(b∗c)(a * b) * c = a * (b * c).

    • Monoid: A semi-group that possesses an identity element e∈Se \in S such that for all a∈Sa \in S:     a∗e=e∗a=aa * e = e * a = a

    • Group: A monoid in which every element a∈Sa \in S possesses an inverse element a−1∈Sa^{-1} \in S such that:     a∗a−1=a−1∗a=ea * a^{-1} = a^{-1} * a = e

    • Abelian Group (Commutative Group): A group that satisfies the commutative law:     a∗b=b∗afor all a,b∈Sa * b = b * a \quad \text{for all } a, b \in S

  • General Group Theorems and Properties:

    • Uniqueness of Identity Element: The identity element in a group is strictly unique.

    • Proof: Let ee and e′e' both be identities in GG. Then e∗e′=ee * e' = e (viewing e′e' as identity) and e∗e′=e′e * e' = e' (viewing ee as identity). Thus e=e′e = e'.

    • Uniqueness of Inverses: The inverse of each element in a group is strictly unique.

    • Proof: Let bb and cc both be inverses of aa. Then ba=e=abba = e = ab and ca=e=acca = e = ac. Consider b(ac)=be=bb(ac) = be = b. Alternatively, by associativity, (ba)c=ec=c(ba)c = ec = c. Therefore, b=cb = c.

    • Left and Right Inverses: A left inverse of an element is identical to its right inverse.

    • Reversal Law of Inverses:     (a∗b)−1=b−1∗a−1(a * b)^{-1} = b^{-1} * a^{-1}

    • Abelian Criterion: A group GG is abelian if and only if (ab)2=a2b2(ab)^2 = a^2b^2 for all a,b∈Ga, b \in G.

    • Proof: (ab)2=(ab)(ab)=a(ba)b(ab)^2 = (ab)(ab) = a(ba)b. If GG is abelian, ba=ab  ⟹  a(ab)b=a2b2ba = ab \implies a(ab)b = a^2b^2.

    • Conversely, if (ab)(ab)=a2b2  ⟹  a(ba)b=a(ab)b(ab)(ab) = a^2b^2 \implies a(ba)b = a(ab)b. Applying left cancellation of aa and right cancellation of bb yields ba=abba = ab.

    • Self-Inverse Groups: If a2=ea^2 = e (meaning a=a−1a = a^{-1}) for every element in GG, then GG is an abelian group.

  • Orders, Subgroups, and Cyclic Groups:

    • Order of an Element (O(a)O(a) or ∣a∣|a|): The least positive integer nn such that an=ea^n = e. If no such integer exists, the element has infinite order.

    • Subgroup: A subset H⊆GH \subseteq G is a subgroup (H≤GH \le G) if HH forms a group under the operation inherited from GG.

    • Subgroup Criterion: A non-empty subset HH is a subgroup if and only if for all a,b∈Ha, b \in H, ab−1∈Hab^{-1} \in H.

    • Theorem: If H1H_1 and H2H_2 are subgroups of GG, their intersection H1∩H2H_1 \cap H_2 is also a subgroup of GG.

    • Cyclic Groups: A group GG is cyclic if there exists a generator a∈Ga \in G such that every element can be expressed as an integer power of aa, written G=⟨a⟩G = \langle a \rangle.

    • If G=⟨a⟩G = \langle a \rangle is finite of order nn, then an=ea^n = e and G={a,a2,a3,…,an=e}G = \lbrace a, a^2, a^3, \dots, a^n = e \rbrace.

    • Generators of a Cyclic Group: An element aka^k serves as a generator of a cyclic group of order nn if and only if gcd⁡(k,n)=1\gcd(k, n) = 1.

    • Example: A cyclic group of order 88, G=⟨a⟩G = \langle a \rangle, has generators aka^k where gcd⁡(k,8)=1\gcd(k, 8) = 1. The values of kk are 1,3,5,71, 3, 5, 7. Thus, there are precisely four generators: a,a3,a5,a7a, a^3, a^5, a^7.

  • Cosets, Lagrange's Theorem, and Normal Subgroups:

    • Cosets: For a subgroup H≤GH \le G and an element g∈Gg \in G:

    • Left coset: gH={gh:h∈H}gH = \lbrace gh : h \in H \rbrace

    • Right coset: Hg={hg:h∈H}Hg = \lbrace hg : h \in H \rbrace

    • Lagrange's Theorem: The order of any subgroup HH of a finite group GG divides the order of the group: ∣G∣=[G:H]⋅∣H∣|G| = [G : H] \cdot |H|.

    • Normal Subgroup: A subgroup N≤GN \le G is normal (N⊴GN \trianglelefteq G) if for every g∈Gg \in G and n∈Nn \in N, gng−1∈Ngng^{-1} \in N (or equivalently, gN=NggN = Ng).

    • Quotient Group (Factor Group / G/NG/N): The set of cosets of a normal subgroup NN forms a group under coset multiplication: (aN)(bN)=(ab)N(aN)(bN) = (ab)N.

    • Theorem: The quotient group of an abelian group is always abelian.

  • Homomorphisms, Isomorphisms, and Permutation Groups:

    • Group Homomorphism: A mapping f:G→G′f: G \to G' preserving the algebraic operation: f(a∗b)=f(a)∗f(b)f(a * b) = f(a) * f(b).

    • Kernel of a Homomorphism: ker⁡f={x∈G:f(x)=e′}\ker f = \lbrace x \in G : f(x) = e' \rbrace.

    • Theorem: The kernel of any group homomorphism f:G→G′f: G \to G' is a normal subgroup of GG.

    • Isomorphism: A homomorphism that is simultaneously injective and surjective (G≅G′G \cong G').

    • Cayley's Theorem: Every finite group of order nn is isomorphic to a permutation group of degree nn.

  • Rings and Fields:

    • Ring: An algebraic system (R,+,⋅)(R, +, \cdot) satisfying:

    • (R,+)(R, +) is an abelian group.

    • (R,⋅)(R, \cdot) is a semi-group.

    • The operation ⋅\cdot is distributive over ++.

    • Commutative Ring with Unity: A ring where multiplication is commutative (a⋅b=b⋅aa \cdot b = b \cdot a) and there exists a multiplicative identity 1∈R1 \in R such that a⋅1=1⋅a=aa \cdot 1 = 1 \cdot a = a.

    • Field: An algebraic structure (F,+,⋅)(F, +, \cdot) such that:

    • (F,+)(F, +) is an abelian group.

    • (F∖{0},⋅)(F \setminus \lbrace 0 \rbrace, \cdot) is an abelian group.

    • Multiplication distributes over addition.

    • Distinction: Every field is a commutative ring with unity, but not every ring is a field because elements in a general ring lack multiplicative inverses.

RECURRENCE RELATIONS AND COMBINATORICS

  • Natural Numbers and Mathematical Induction:

    • Natural Numbers (N\mathbb{N}): Countable positive integers starting from 11 to ∞\infty: N={1,2,3,… }\mathbb{N} = \lbrace 1, 2, 3, \dots \rbrace.

    • Whole Numbers (W\mathbb{W}): Natural numbers including zero: W={0,1,2,3,… }\mathbb{W} = \lbrace 0, 1, 2, 3, \dots \rbrace.

    • Peano's Axioms: Formal axiomatic foundation of natural numbers generated from ϕ=0\phi = 0 via the successor function n+=n∪{n}n^+ = n \cup \lbrace n \rbrace:

    • 0∈N0 \in \mathbb{N}.

    • If n∈Nn \in \mathbb{N}, then n+∈Nn^+ \in \mathbb{N}.

    • If a subset S⊆NS \subseteq \mathbb{N} contains 00 and contains n+n^+ whenever it contains nn, then S=NS = \mathbb{N}.

    • Principle of Mathematical Induction:

    • Base Case: Verify the proposition P(n)P(n) holds for the initial integer (e.g., n=1n = 1 or n=0n = 0).

    • Inductive Hypothesis: Assume P(k)P(k) holds for some arbitrary integer kk.

    • Inductive Step: Prove that P(k+1)P(k + 1) necessarily follows as true.

    • Concrete Proof: Show 6n+2+72n+16^{n+2} + 7^{2n+1} is divisible by 4343 for all n≥1n \ge 1:

      • Base step (n=1n = 1): 63+73=216+343=559=43×136^3 + 7^3 = 216 + 343 = 559 = 43 \times 13, which is divisible by 4343.

      • Inductive step: Assume P(k)=6k+2+72k+1=43mP(k) = 6^{k+2} + 7^{2k+1} = 43m. For k+1k + 1:         P(k+1)=6k+3+72k+3=6⋅6k+2+49⋅72k+1=6(6k+2+72k+1)+43⋅72k+1=6(43m)+43⋅72k+1P(k + 1) = 6^{k+3} + 7^{2k+3} = 6 \cdot 6^{k+2} + 49 \cdot 7^{2k+1} = 6(6^{k+2} + 7^{2k+1}) + 43 \cdot 7^{2k+1} = 6(43m) + 43 \cdot 7^{2k+1}         Factoring out 4343 proves divisibility for all n≥1n \ge 1.

  • Combinatorics and Counting Techniques:

    • Fundamental Principles of Counting: Product rule and sum rule.

    • Combinations (nCr^nC_r): Selection of rr distinct objects from nn items without regard to ordering:     nCr=(nr)=n!r!(n−r)!^nC_r = \binom{n}{r} = \frac{n!}{r!(n - r)!}

    • Handshake Problem: In a room of nn persons, total handshakes equal n(n−1)2=66  ⟹  n2−n−132=0  ⟹  (n−12)(n+11)=0  ⟹  n=12\frac{n(n - 1)}{2} = 66 \implies n^2 - n - 132 = 0 \implies (n - 12)(n + 11) = 0 \implies n = 12.

    • Stars and Bars (Non-Negative Integer Solutions): The number of distinct non-negative integer solutions to x1+x2+⋯+xk=nx_1 + x_2 + \dots + x_k = n is given by:     (n+k−1n)=(n+k−1k−1)\binom{n + k - 1}{n} = \binom{n + k - 1}{k - 1}

    • For x1+x2+x3+x4=13x_1 + x_2 + x_3 + x_4 = 13: (13+4−113)=(163)=16×15×143×2×1=560\binom{13 + 4 - 1}{13} = \binom{16}{3} = \frac{16 \times 15 \times 14}{3 \times 2 \times 1} = 560.

    • Pigeonhole Principle (Dirichlet Drawer Principle):

    • If nn pigeons are distributed into mm pigeonholes with n>mn > m, at least one pigeonhole must contain two or more pigeons.

    • Extended (Generalized) Pigeonhole Principle: Distributing nn items into mm containers guarantees at least one container receives at least:       ⌈n−1m⌉+1\left\lceil \frac{n - 1}{m} \right\rceil + 1

    • Problem: Minimum boys born in the same minute out of 30003000 boys on a single day (14401440 minutes):       ⌈3000−11440⌉+1=1+1=2\left\lceil \frac{3000 - 1}{1440} \right\rceil + 1 = 1 + 1 = 2

  • Pólya's Counting Theorem (PET):

    • Developed by John Howard Redfield (1927) and independently by George Pólya (1937), this theorem generalizes Burnside's Lemma to calculate the number of non-equivalent configurations under a symmetry permutation group AA.

    • Employs the cycle index polynomial Z(A)Z(A) to account for equivalence classes by weight when assigning colors to geometric configurations (e.g., colored vertices of a polygon).

  • Generating Functions:

    • The ordinary generating function for an infinite sequence ⟨a0,a1,a2,… ⟩\langle a_0, a_1, a_2, \dots \rangle is defined as the formal power series:     A(z)=∑n=0∞anzn=a0+a1z+a2z2+⋯+anzn+…A(z) = \sum_{n=0}^\infty a_n z^n = a_0 + a_1 z + a_2 z^2 + \dots + a_n z^n + \dots

    • Standard Closed Forms:

    • Constant sequence ⟨1,1,1,… ⟩\langle 1, 1, 1, \dots \rangle: A(z)=11−zA(z) = \frac{1}{1 - z}

    • Alternating sequence ⟨1,−1,1,−1,… ⟩\langle 1, -1, 1, -1, \dots \rangle: A(z)=11+zA(z) = \frac{1}{1 + z}

    • Geometric sequence ⟨1,a,a2,a3,… ⟩\langle 1, a, a^2, a^3, \dots \rangle: A(z)=11−azA(z) = \frac{1}{1 - az}

    • Linear sequence ⟨0,1,2,3,… ⟩\langle 0, 1, 2, 3, \dots \rangle: A(z)=z(1−z)2A(z) = \frac{z}{(1 - z)^2}

    • Factorial sequence an=1(n+1)!a_n = \frac{1}{(n+1)!}: G(x)=ex−1xG(x) = \frac{e^x - 1}{x}

  • Recurrence Relations:

    • An equation that recursively defines a sequence where each term is a function of preceding terms.

    • Linear Homogeneous Recurrences with Constant Coefficients:     an+c1an−1+c2an−2+⋯+ckan−k=0a_n + c_1 a_{n-1} + c_2 a_{n-2} + \dots + c_k a_{n-k} = 0

    • Solved via characteristic equation αk+c1αk−1+⋯+ck=0\alpha^k + c_1 \alpha^{k-1} + \dots + c_k = 0.

    • Distinct Roots α1,α2\alpha_1, \alpha_2: General solution is an=A1(α1)n+A2(α2)na_n = A_1(\alpha_1)^n + A_2(\alpha_2)^n.

    • Repeated Roots α1=α2=α\alpha_1 = \alpha_2 = \alpha: General solution is an=(A1+A2n)αna_n = (A_1 + A_2 n)\alpha^n.

    • Linear Non-Homogeneous Recurrence Relations:     an+c1an−1+c2an−2=f(n)a_n + c_1 a_{n-1} + c_2 a_{n-2} = f(n)

    • Complete solution equals homogeneous solution plus particular solution: an=an(h)+an(p)a_n = a_n^{(h)} + a_n^{(p)}.

    • Worked Problem: Solve an−9an−1+20an−2=0a_n - 9a_{n-1} + 20a_{n-2} = 0 with a0=−3a_0 = -3, a1=−10a_1 = -10 using generating functions:

    • Form power series: A(z)(1−9z+20z2)=17z+3A(z)(1 - 9z + 20z^2) = 17z + 3.

    • Factorize denominator: 20z2−9z+1=(5z−1)(4z−1)20z^2 - 9z + 1 = (5z - 1)(4z - 1).

    • Partial fraction decomposition:       A(z)=21−5z−51−4zA(z) = \frac{2}{1 - 5z} - \frac{5}{1 - 4z}

    • Expanding into power series:       an=2(5)n−5(4)na_n = 2(5)^n - 5(4)^n

    • Worked Divide-and-Conquer Recurrence: Solve T(n)=3T(n/3)+nT(n) = 3T(n/3) + n with T(1)=1T(1) = 1:

    • By substitution across k=log⁡3(n)k = \log_3(n) levels:       T(n)=3kT(1)+n∑j=0k−11=n(1)+nlog⁡3(n)=n+nlog⁡3(n)T(n) = 3^k T(1) + n \sum_{j=0}^{k-1} 1 = n(1) + n \log_3(n) = n + n \log_3(n)