Discrete Mathematics
Discrete Mathematics
Discrete Mathematics
Binomial Coefficient:-
The Binomial Coefficients are coefficients that appear in the expansion of a binomial expression (x + y )n
using the Binomial Theorem. For an expression (a+ b)n the Binomial Theorem states:
(( ))
n
(a+ b) =∑ n a n−k b k
n
k=0 k
k=0 k
4−k k
()
This gives us:
k () k () k
4 2
k ()
4
()
3
k ()
(3 x +4 y ) = 4 (3 x) (4 y) + 4 (3 x ) ( 4 y ) + 4 (3 x) (4 y ) + 4 (3 x) (4 y) + 4 (3 x ) (4 y )
4 4 0 4 1 4 4
3. Explain the Bijective and Serjective Function with the conditions for a
function to be Bijective and Serjective.
Bijective Function:-
The bijective function can also be called a one-to-one corresponding function or bijection.
One to one function (injection function) and one to one correspondence both are different
things. So we should not be confused about these.
A function will be known as bijection function if a function f: X → Y satisfied the properties of
surjective function (onto function) and injective function (one to one function) both.
o Each and every X's element must pair with at least one Y's element.
o X's element may not pair with more than one Y's element.
o Each and every Y's element must pair with at least one X's element.
o Y's element may not pair with more than one X's element.
Serjective Function: -
A surjective function is a type of function in which its image and codomain are similar to each other.
o In a surjective function, the range and codomain are also equal to each other.
In the surjective function, not even a single element is left out. This is because all the
elements of Y are mapped with some element of A.
When we have a case where every y codomain has a minimum of one pre-image x domain,
then the function will be known as the surjective function.
Each and every element of the surjective function in the codomain must be assigned a
minimum one value in the domain.
There will be a right inverse for every function that is surjective. In other words, we can say
that every function that contains a right inverse will be considered a surjective function.
If the range and co-domain of a function f are equal to each other, then this function f: A →
B will be onto function.
4. Draw the pascal triangle for the permutations series of 15 and also
assign the binary code for each series in the triangle
Pascal’s Triangle is a numerical pattern arranged in a triangular form. This triangle provides the
coefficients for the expansion of any binomial expression, with numbers organized in a way that they
form a triangular shape. i.e. the second row in Pascal’s triangle represents the coefficients in (x+y)2
and so on.
In Pascal’s triangle, each number is the sum of the above two numbers. Pascal’s triangle has various
applications in probability theory, combinatorics, algebra, and various other branches of
mathematics.
0 1 0000
1 1, 1 0001, 0001
6 1, 6, 15, 20, 15, 6, 1 0110, 0111, 1111, 10100, 1111, 0111, 0110
7 1, 7, 21, 35, 35, 21, 7, 1 0111, 1000, 10101, 100011, 100011, 10101, 1000, 0111
1, 8, 28, 56, 70, 56, 28, 1000, 1001, 11100, 111000, 1000110, 111000, 11100,
8
8, 1 1001, 1000
1, 9, 36, 84, 126, 126, 1001, 1010, 100100, 1010100, 1111110, 1111110,
9
84, 36, 9, 1 1010100, 100100, 1010, 1001
1, 10, 45, 120, 210, 252, 1010, 1011, 101101, 1111000, 11010010, 11111100,
10
210, 120, 45, 10, 1 11010010, 1111000, 101101, 1011, 1010
1, 11, 55, 165, 330, 462, 1011, 1100, 110111, 10100101, 101001010, 111001110,
11
462, 330, 165, 55, 11, 1 111001110, 101001010, 10100101, 110111, 1100, 1011
The Handshake Lemma (or Handshake Theorem) is a principle in graph theory that states:
In any undirected graph, the sum of the degrees of all vertices is equal to twice the number of edges.
This result is derived from the fact that each edge in an undirected graph contributes to the degree (or
"handshake") count of two vertices (one at each end).
If a graph has nnn vertices and mmm edges, and the degree of vertex viv_ivi is d(vi)d(v_i)d(vi), then:
Example
Consider a simple undirected graph with 4 vertices AAA, BBB, CCC, and DDD and 3 edges connecting
them as follows:
AAA: Degree = 1
BBB: Degree = 2
CCC: Degree = 2
DDD: Degree = 1
1+2+2+1=61 + 2 + 2 + 1 = 61+2+2+1=6
Thus, the Handshake Lemma holds, as the sum of the degrees (6) is indeed twice the number of edges (6).
6. Prove the theorem of De morgan Law for the sets and Relations with
appropriate example
De Morgan's Laws are fundamental rules in set theory and logic that describe the relationship between
union, intersection, and complement operations. The laws state:
Let UUU be the universal set, and let AAA and BBB be subsets of UUU.
Left Side: (A∪B)c(A \cup B)^c(A∪B)c is the set of all elements in UUU that are not in A∪BA \cup BA∪B.
Right Side: Ac∩BcA^c \cap B^cAc∩Bc is the set of all elements in UUU that are not in AAA and are not in
BBB.
Reasoning:
1. If an element x∈(A∪B)cx \in (A \cup B)^cx∈(A∪B)c, then xxx is not in AAA and not in BBB. Thus, x∈Acx \in
A^cx∈Ac and x∈Bc x \in B^cx∈Bc.
2. Therefore, x∈Ac∩Bcx \in A^c \cap B^cx∈Ac∩Bc, which means (A∪B)c⊆Ac∩Bc(A \cup B)^c \subseteq A^c \
cap B^c(A∪B)c⊆Ac∩Bc.
Similarly, if x∈Ac∩Bcx \in A^c \cap B^cx∈Ac∩Bc, then xxx is not in AAA and not in BBB, so xxx is not
in A∪BA \cup BA∪B. Thus, x∈(A∪B)c x \in (A \cup B)^cx∈(A∪B)c, which implies
Ac∩Bc⊆(A∪B)cA^c \cap B^c \subseteq (A \cup B)^cAc∩Bc⊆(A∪B)c.
Since both directions are true, (A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c(A∪B)c=Ac∩Bc.
Left Side: (A∩B)c(A \cap B)^c(A∩B)c is the set of all elements in UUU that are not in A∩BA \cap BA∩B.
Right Side: Ac∪BcA^c \cup B^cAc∪Bc is the set of all elements in UUU that are not in AAA or not in BBB.
Reasoning:
1. If an element x∈(A∩B)cx \in (A \cap B)^cx∈(A∩B)c, then xxx is not in A∩BA \cap BA∩B, meaning xxx is not
in AAA or not in BBB. So, x∈Acx \in A^cx∈Ac or x∈Bc x \in B^cx∈Bc, which implies x∈Ac∪Bc x \in A^c \cup
B^cx∈Ac∪Bc.
2. Therefore, (A∩B)c⊆Ac∪Bc(A \cap B)^c \subseteq A^c \cup B^c(A∩B)c⊆Ac∪Bc.
Similarly, if x∈Ac∪Bcx \in A^c \cup B^cx∈Ac∪Bc, then xxx is not in AAA or not in BBB, so xxx is not
in A∩BA \cap BA∩B. Thus, x∈(A∩B)c x \in (A \cap B)^cx∈(A∩B)c, which implies Ac∪Bc⊆(A∩B)cA^c
\cup B^c \subseteq (A \cap B)^cAc∪Bc⊆(A∩B)c.
Since both directions are true, (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c(A∩B)c=Ac∪Bc.
Example
Thus, (A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c(A∪B)c=Ac∩Bc, confirming the first De Morgan law.