Discrete Math
Discrete Math
Discrete Math
Dramatis Personae
Impact
Application Process
Program Philosophies
Contact Us
Looking for ?
An analog clock has gears inside, and the sizes/teeth needed for correct
timekeeping are determined using discrete math.
Area codes: How do we know when we need more area codes to cover the
phone numbers in a region? This is a basic combinatorics problem.
Scaling COVID-19 testing by more efficiently using patient samples is assisted
by linear algebra.
Voting systems: There are different methods for voting---not just the common
cast-a-ballot-for-exactly-one-candidate method. The study of possible voting
methods and how well their outcomes reflect the intent of the voters uses
discrete mathematics.
Hidden Markov models, which are part of linear algebra, are used for large
vocabulary continuous speech recognition.
Food Webs: A food web describes the ways in which a set of species eat (and
don't eat) each other. They can be studied using graph theory.
Managing Health Care Resources: Medical procedures require space and health
care workers and equipment. We want to not waste space and schedule staff
well and make sure equipment is both used and maintained, and we want these
resources to be allocated equitably. A type of discrete mathematics known
as integer programming is used in optimizing hospital resources.
Discrete math is used in choosing the most on-time route for a given train
trip in the UK. The software determines the probability of a given train trip
being completed on time in the UK uses Markov chains.
Power grids: Graph theory is used in finding the most vulnerable aspects of an
electric grid. Graph theory and linear algebra are used in power grid
simulations.
Voting theory (see earlier on this page) can be used to decide how to prioritize
among biodiversity conservation sites (see the abstract for this paper).
It's difficult to get good pictures of space junk because it moves and rotates.
Linear algebra is used in improving images of space debris.
Many ways of producing rankings use both linear algebra and graph theory.
Specific examples include ranking relevance of search
results using Google, ranking teams for tournaments or chicken pecking orders,
and ranking sports team performances or restaurant preferences that include
apparent paradoxen.
Changing patterns in lizard skin are described by discrete cellular automata.
Linear algebra and graph theory are used in clustering analysis on geosocial
data to locate gangs and insurgencies.
Application Process
Program Philosophies
Contact Us
Looking for ?
Fast (and Slow) Facts
Dramatis Personae
Impact
Let us see what happens to $1,000 invested at the beginning of each year for three
years.
First let us consider the $1,000 invested at the beginning of the first year. After one
year it produces a return of $100. Thus at the beginning of the second year, $1,100,
which is equal to $1,000 * ( 1 + 0.1 ), is invested. This $1,100 produces $110 at the
end of the second year. Thus at the beginning of the third year we have $1,210,
which is equal to $1,000 * ( 1 + 0.1 )( 1 + 0.1 ), or $1,000 * ( 1 + 0.1 )2. After the third
year this gives us $1,000 * ( 1 + 0.1 )3.
Similarly we can see that the $1,000 invested at the beginning of the second year
produces $1,000 * ( 1 + 0.1 )2 at the end of the third year, and the $1,000 invested at
the beginning of the third year becomes $1,000 * ( 1 + 0.1 ).
Thus the total principal and return after three years is $1,000 * ( 1 + 0.1 ) + $1,000 * (
1 + 0.1 )2 + $1,000 * ( 1 + 0.1 )3, which is equal to $3,641.
One can similarly calculate the principal and return for 5 years and for 10 years. It is,
however, a long tedious calculation even with calculators. Further, what if you want
to know the principal and return for some different returns than 10%, or different
periods of time such as 15 years ? You would have to do all these calculations all over
again.
Suppose now that somehow we have formally verified the formula successfully and
we are absolutely sure that it is correct. It is a good idea to write a computer
program to compute that S, especially with (1 + R)n + 1 to be computed. Suppose
again that we have written a program to compute S. How can we know that the
program is correct ? As we know, there are infinitely many possible input values (that
is, values of A, R and n). Obviously we can not test it for infinitely many cases. Thus
we must take some formal approach.
The subjects covered in this course include propositional logic, predicate logic, sets,
relations, and functions, in particular growth of function.
Before we start the study of discrete structures, we briefly learn general framework
of problem solving. If you are a good problem solver, you may skip that and go to
logic.
Back to Schedule
Back to Table of Contents
Processing math: 38%
Home
Coding Ground
Jobs
Whiteboard
Tools
Business
Teach with us
Category
Prime Packs
Courses
eBooks
Library
Q/A
Login
Previous Page
Next Page
20 Lectures 1.5 hours
Lukáš Vyhnálek
More Detail
Set - Definition
A set is an unordered collection of different elements. A set can be written explicitly by listing its
elements using set bracket. If the order of the elements is changed or any element of a set is
repeated, it does not make any changes in the set.
Some Example of Sets
A set of all positive integers
A set of all the planets in the solar system
A set of all the states in India
A set of all the lowercase letters of the alphabet
Representation of a Set
Sets can be represented in two ways −
Cardinality of a Set
Cardinality of a set S, denoted by |S|, is the number of elements of the set. The number is also
referred as the cardinal number. If a set has an infinite number of elements, its cardinality is ∞.
Example − |{1,4,3,5}|=4,|{1,2,3,4,5,…}|=∞
If there are two sets X and Y,
|X|=|Y| denotes two sets X and Y having same cardinality. It occurs when the
number of elements in X is exactly equal to the number of elements in Y. In this
case, there exists a bijective function ‘f’ from X to Y.
|X|≤|Y| denotes that set X’s cardinality is less than or equal to set Y’s cardinality. It
occurs when number of elements in X is less than or equal to that of Y. Here, there
exists an injective function ‘f’ from X to Y.
|X|<|Y| denotes that set X’s cardinality is less than set Y’s cardinality. It occurs
when number of elements in X is less than that of Y. Here, the function ‘f’ from X
to Y is injective function but not bijective.
If |X|≤|Y| and |X|≥|Y| then |X|=|Y|. The sets X and Y are commonly referred as
equivalent sets.
Types of Sets
Sets can be classified into many types. Some of which are finite, infinite, subset, universal,
proper, singleton set, etc.
Finite Set
A set which contains a definite number of elements is called a finite set.
Example − S={x|x∈N and 70>x>50}
Infinite Set
A set which contains infinite number of elements is called an infinite set.
Example − S={x|x∈N and x>10}
Subset
A set X is a subset of set Y (Written as X⊆Y) if every element of X is an element of set Y.
Example 1 − Let, X={1,2,3,4,5,6} and Y={1,2}. Here set Y is a subset of set X as all the
elements of set Y is in set X. Hence, we can write Y⊆X.
Example 2 − Let, X={1,2,3} and Y={1,2,3}. Here set Y is a subset (Not a proper subset) of
set X as all the elements of set Y is in set X. Hence, we can write Y⊆X.
Proper Subset
The term “proper subset” can be defined as “subset of but not equal to”. A Set X is a proper
subset of set Y (Written as X⊂Y) if every element of X is an element of set Y and |X|<|Y|.
Example − Let, X={1,2,3,4,5,6} and Y={1,2}. Here set Y⊂X since all elements in Y are
contained in X too and X has at least one element is more than set Y.
Universal Set
It is a collection of all elements in a particular context or application. All the sets in that context
or application are essentially subsets of this universal set. Universal sets are represented as U.
Example − We may define U as the set of all animals on earth. In this case, set of all
mammals is a subset of U, set of all fishes is a subset of U, set of all insects is a subset of U,
and so on.
Empty Set or Null Set
An empty set contains no elements. It is denoted by ∅. As the number of elements in an empty
set is finite, empty set is a finite set. The cardinality of empty set or null set is zero.
Example − S={x|x∈N and 7<x<8}=∅
Singleton Set or Unit Set
Singleton set or unit set contains only one element. A singleton set is denoted by {s}.
Example − S={x|x∈N, 7<x<9} = {8}
Equal Set
If two sets contain the same elements they are said to be equal.
Example − If A={1,2,6} and B={6,1,2}, they are equal as every element of set A is an
element of set B and every element of set B is an element of set A.
Equivalent Set
If the cardinalities of two sets are same, they are called equivalent sets.
Example − If A={1,2,6} and B={16,17,22}, they are equivalent as cardinality of A is equal
to the cardinality of B. i.e. |A|=|B|=3
Overlapping Set
Two sets that have at least one common element are called overlapping sets.
In case of overlapping sets −
n(A∪B)=n(A)+n(B)−n(A∩B)
n(A∪B)=n(A−B)+n(B−A)+n(A∩B)
n(A)=n(A−B)+n(A∩B)
n(B)=n(B−A)+n(A∩B)
Example − Let, A={1,2,6} and B={6,12,42}. There is a common element ‘6’, hence these sets
are overlapping sets.
Disjoint Set
Two sets A and B are called disjoint sets if they do not have even one element in common.
Therefore, disjoint sets have the following properties −
n(A∩B)=∅
n(A∪B)=n(A)+n(B)
Example − Let, A={1,2,6} and B={7,9,14}, there is not a single common element, hence these
sets are overlapping sets.
Venn Diagrams
Venn diagram, invented in 1880 by John Venn, is a schematic diagram that shows all possible
logical relations between different mathematical sets.
Examples
Set Operations
Set Operations include Set Union, Set Intersection, Set Difference, Complement of Set, and
Cartesian Product.
Set Union
The union of sets A and B (denoted by A∪B) is the set of elements which are in A, in B, or in
both A and B. Hence, A∪B={x|x∈A OR x∈B}.
Example − If A={10,11,12,13} and B = {13,14,15}, then A∪B={10,11,12,13,14,15}. (The
common element occurs only once)
Set Intersection
The intersection of sets A and B (denoted by A∩B) is the set of elements which are in both A and
B. Hence, A∩B={x|x∈A AND x∈B}.
Example − If A={11,12,13} and B={13,14,15}, then A∩B={13}.
Set Difference/ Relative Complement
The set difference of sets A and B (denoted by A–B) is the set of elements which are only in A
but not in B. Hence, A−B={x|x∈A AND x∉B}.
Example − If A={10,11,12,13} and B={13,14,15}, then (A−B)={10,11,12} and (B−A)={14,15}.
Here, we can see (A−B)≠(B−A)
Complement of a Set
The complement of a set A (denoted by A′) is the set of elements which are not in set A.
Hence, A′={x|x∉A}.
More specifically, A′=(U−A) where U is a universal set which contains all objects.
Example − If A={x|x belongstosetofoddintegers} then A′={y|y doesnotbelongtosetofoddintegers}
Power Set
Power set of a set S is the set of all subsets of S including the empty set. The cardinality of a
power set of a set S of cardinality n is 2n. Power set is denoted as P(S).
Example −
For a set S={a,b,c,d} let us calculate the subsets −
Subsets with 0 elements − {∅} (the empty set)
Subsets with 1 element − {a},{b},{c},{d}
Subsets with 2 elements − {a,b},{a,c},{a,d},{b,c},{b,d},{c,d}
Subsets with 3 elements − {a,b,c},{a,b,d},{a,c,d},{b,c,d}
Subsets with 4 elements − {a,b,c,d}
Hence, P(S)=
{{∅},{a},{b},{c},{d},{a,b},{a,c},{a,d},{b,c},{b,d},{c,d},{a,b,c},{a,b,d},{a,c,d},{b,c,d},
{a,b,c,d}}
|P(S)|=24=16
Note − The power set of an empty set is also an empty set.
|P({∅})|=20=1
Partitioning of a Set
Partition of a set, say S, is a collection of n disjoint subsets, say P1,P2,…Pn that satisfies the
following three conditions −
Pi does not contain the empty set.
[Pi≠{∅} for all 0<i≤n]
The union of the subsets must equal the entire original set.
[P1∪P2∪⋯∪Pn=S]
The intersection of any two distinct sets is empty.
[Pa∩Pb={∅}, for a≠b where n≥a,b≥0]
Example
Let S={a,b,c,d,e,f,g,h}
One probable partitioning is {a},{b,c,d},{e,f,g,h}
Another probable partitioning is {a,b},{c,d},{e,f,g,h}
Bell Numbers
Bell numbers give the count of the number of ways to partition a set. They are denoted
by Bn where n is the cardinality of the set.
Example −
Let S={1,2,3}, n=|S|=3
The alternate partitions are −
1. ∅,{1,2,3}
2. {1},{2,3}
3. {1,2},{3}
4. {1,3},{2}
5. {1},{2},{3}
Hence B3=5
Discrete Mathematics - Relations
Whenever sets are being discussed, the relationship between the elements of the sets is the next
thing that comes up. Relations may exist between objects of the same set or between objects of
two or more sets.
Definition and Properties
A binary relation R from set x to y (written as xRy or R(x,y)) is a subset of the Cartesian
product x×y. If the ordered pair of G is reversed, the relation also changes.
Generally an n-ary relation R between sets A1,…, and An is a subset of the n-ary product A1×⋯
×An. The minimum cardinality of a relation R is Zero and maximum is n2 in this case.
A binary relation R on a single set A is a subset of A×A.
For two distinct sets, A and B, having cardinalities m and n respectively, the maximum
cardinality of a relation R from A to B is mn.
Inverse of a Function
The inverse of a one-to-one corresponding function f:A→B, is the function g:B→A, holding the
following property −
f(x)=y⇔g(y)=x
The function f is called invertible, if its inverse function g exists.
Example
A Function f:Z→Z,f(x)=x+5, is invertible since it has the inverse
function g:Z→Z,g(x)=x−5.
A Function f:Z→Z,f(x)=x2 is not invertiable since this is not one-to-one
as (−x)2=x2.
Composition of Functions
Two functions f:A→B and g:B→C can be composed to give a composition gof. This is a function
from A to C defined by (gof)(x)=g(f(x))
Example
Let f(x)=x+2 and g(x)=2x+1, find (fog)(x) and (gof)(x).
Solution
(fog)(x)=f(g(x))=f(2x+1)=2x+1+2=2x+3
(gof)(x)=g(f(x))=g(x+2)=2(x+2)+1=2x+5
Hence, (fog)(x)≠(gof)(x)
Some Facts about Composition
If f and g are one-to-one then the function (gof) is also one-to-one.
If f and g are onto then the function (gof) is also onto.
Composition always holds associative property but does not hold commutative
property.
Discrete Mathematics - Propositional Logic
The rules of mathematical logic specify methods of reasoning mathematical statements. Greek
philosopher, Aristotle, was the pioneer of logical reasoning. Logical reasoning provides the
theoretical base for many areas of mathematics and consequently computer science. It has many
practical applications in computer science like design of computing machines, artificial
intelligence, definition of data structures for programming languages etc.
Propositional Logic is concerned with statements to which the truth values, “true” and “false”,
can be assigned. The purpose is to analyze these statements either individually or in a composite
manner.
Connectives
In propositional logic generally we use five connectives which are −
OR (∨)
AND (∧)
Negation/ NOT (¬)
Implication / if-then (→)
If and only if (⇔).
OR (∨) − The OR operation of two propositions A and B (written as A∨B) is true if at least any
of the propositional variable A or B is true.
The truth table is as follows −
A B A∨B
AND (∧) − The AND operation of two propositions A and B (written as A∧B) is true if both the
propositional variable A and B is true.
The truth table is as follows −
A B A∧B
True True True
Negation (¬) − The negation of a proposition A (written as ¬A) is false when A is true and is
true when A is false.
The truth table is as follows −
A ¬A
True False
False True
Implication / if-then (→) − An implication A→B is the proposition “if A, then B”. It is false if
A is true and B is false. The rest cases are true.
The truth table is as follows −
A B A→B
If and only if (⇔) − A⇔B is bi-conditional logical connective which is true when p and q are
same, i.e. both are false or both are true.
The truth table is as follows −
A B A⇔B
True True True
Tautologies
A Tautology is a formula which is always true for every value of its propositional variables.
Example − Prove [(A→B)∧A]→B is a tautology
The truth table is as follows −
A B A→B (A → B) ∧ A [( A → B ) ∧ A] → B
Contradictions
A Contradiction is a formula which is always false for every value of its propositional variables.
Example − Prove (A∨B)∧[(¬A)∧(¬B)] is a contradiction
The truth table is as follows −
A B A∨B ¬A ¬B (¬ A) ∧ ( ¬ B) (A ∨ B) ∧ [( ¬ A) ∧ (¬ B)]
Contingency
A Contingency is a formula which has both some true and some false values for every value of
its propositional variables.
Example − Prove (A∨B)∧(¬A) a contingency
The truth table is as follows −
A B A∨B ¬A (A ∨ B) ∧ (¬ A)
As we can see every value of (A∨B)∧(¬A) has both “True” and “False”, it is a contingency.
Propositional Equivalences
Two statements X and Y are logically equivalent if any of the following two conditions hold −
The truth tables of each statement have the same truth values.
The bi-conditional statement X⇔Y is a tautology.
Example − Prove ¬(A∨B)and[(¬A)∧(¬B)] are equivalent
Testing by 1st method (Matching truth table)
A B A∨B ¬ (A ∨ B) ¬A ¬B [(¬ A) ∧ (¬ B)]
Here, we can see the truth values of ¬(A∨B)and[(¬A)∧(¬B)] are same, hence the statements are
equivalent.
Testing by 2nd method (Bi-conditionality)
A B ¬ (A ∨ B ) [(¬ A) ∧ (¬ B)] [¬ (A ∨ B)] ⇔ [(¬ A ) ∧ (¬ B)]
Duality Principle
Duality principle states that for any true statement, the dual statement obtained by interchanging
unions into intersections (and vice versa) and interchanging Universal set into Null set (and vice
versa) is also true. If dual of any statement is the statement itself, it is said self-dual statement.
Example − The dual of (A∩B)∪C is (A∪B)∩C
Normal Forms
We can convert any proposition in two normal forms −
Quantifiers
The variable of predicates is quantified by quantifiers. There are two types of quantifier in
predicate logic − Universal Quantifier and Existential Quantifier.
Universal Quantifier
Universal quantifier states that the statements within its scope are true for every value of the
specific variable. It is denoted by the symbol ∀.
∀xP(x) is read as for every value of x, P(x) is true.
Example − "Man is mortal" can be transformed into the propositional form ∀xP(x) where P(x) is
the predicate which denotes x is mortal and the universe of discourse is all men.
Existential Quantifier
Existential quantifier states that the statements within its scope are true for some values of the
specific variable. It is denoted by the symbol ∃.
∃xP(x) is read as for some values of x, P(x) is true.
Example − "Some people are dishonest" can be transformed into the propositional
form ∃xP(x) where P(x) is the predicate which denotes x is dishonest and the universe of
discourse is some people.
Nested Quantifiers
If we use a quantifier that appears within the scope of another quantifier, it is called nested
quantifier.
Example
∀ a∃bP(x,y) where P(a,b) denotes a+b=0
∀ a∀b∀cP(a,b,c) where P(a,b) denotes a+(b+c)=(a+b)+c
Note − ∀a∃bP(x,y)≠∃a∀bP(x,y)
Discrete Mathematics - Rules of Inference
To deduce new statements from the statements whose truth that we already know, Rules of
Inference are used.
\begin{matrix} P \
rightarrow Q \\ \lnot Q \\ \ Modus
hline \therefore \lnot P \ Tollens
end{matrix}
Addition
If P is a premise, we can use Addition rule to derive P \lor Q .
\begin{matrix} P \\ \hline \therefore P \lor Q \end{matrix}
Example
Let P be the proposition, “He studies very hard” is true
Therefore − "Either he studies very hard Or he is a very bad student." Here Q is the proposition
“he is a very bad student”.
Conjunction
If P and Q are two premises, we can use Conjunction rule to derive P \land Q .
\begin{matrix} P \\ Q \\ \hline \therefore P \land Q \end{matrix}
Example
Let P − “He studies very hard”
Let Q − “He is the best boy in the class”
Therefore − "He studies very hard and he is the best boy in the class"
Simplification
If P \land Q is a premise, we can use Simplification rule to derive P.
\begin{matrix} P \land Q\\ \hline \therefore P \end{matrix}
Example
"He studies very hard and he is the best boy in the class", P \land Q
Therefore − "He studies very hard"
Modus Ponens
If P and P \rightarrow Q are two premises, we can use Modus Ponens to derive Q.
\begin{matrix} P \rightarrow Q \\ P \\ \hline \therefore Q \end{matrix}
Example
"If you have a password, then you can log on to facebook", P \rightarrow Q
"You have a password", P
Therefore − "You can log on to facebook"
Modus Tollens
If P \rightarrow Q and \lnot Q are two premises, we can use Modus Tollens to derive \lnot P.
\begin{matrix} P \rightarrow Q \\ \lnot Q \\ \hline \therefore \lnot P \end{matrix}
Example
"If you have a password, then you can log on to facebook", P \rightarrow Q
"You cannot log on to facebook", \lnot Q
Therefore − "You do not have a password "
Disjunctive Syllogism
If \lnot P and P \lor Q are two premises, we can use Disjunctive Syllogism to derive Q.
\begin{matrix} \lnot P \\ P \lor Q \\ \hline \therefore Q \end{matrix}
Example
"The ice cream is not vanilla flavored", \lnot P
"The ice cream is either vanilla flavored or chocolate flavored", P \lor Q
Therefore − "The ice cream is chocolate flavored”
Hypothetical Syllogism
If P \rightarrow Q and Q \rightarrow R are two premises, we can use Hypothetical Syllogism to
derive P \rightarrow R
\begin{matrix} P \rightarrow Q \\ Q \rightarrow R \\ \hline \therefore P \rightarrow R \
end{matrix}
Example
"If it rains, I shall not go to school”, P \rightarrow Q
"If I don't go to school, I won't need to do homework", Q \rightarrow R
Therefore − "If it rains, I won't need to do homework"
Constructive Dilemma
If ( P \rightarrow Q ) \land (R \rightarrow S) and P \lor R are two premises, we can use
constructive dilemma to derive Q \lor S.
\begin{matrix} ( P \rightarrow Q ) \land (R \rightarrow S) \\ P \lor R \\ \hline \therefore Q \lor S \
end{matrix}
Example
“If it rains, I will take a leave”, ( P \rightarrow Q )
“If it is hot outside, I will go for a shower”, (R \rightarrow S)
“Either it will rain or it is hot outside”, P \lor R
Therefore − "I will take a leave or I will go for a shower"
Destructive Dilemma
If (P \rightarrow Q) \land (R \rightarrow S) and \lnot Q \lor \lnot S are two premises, we can use
destructive dilemma to derive \lnot P \lor \lnot R.
\begin{matrix} (P \rightarrow Q) \land (R \rightarrow S) \\ \lnot Q \lor \lnot S \\ \hline \
therefore \lnot P \lor \lnot R \end{matrix}
Example
“If it rains, I will take a leave”, (P \rightarrow Q )
“If it is hot outside, I will go for a shower”, (R \rightarrow S)
“Either I will not take a leave or I will not go for a shower”, \lnot Q \lor \lnot S
Therefore − "Either it does not rain or it is not hot outside"
Closure
A set is closed with respect to a binary operator if for every pair of elements in the set, the
operator finds a unique element from that set.
Example
Let A = \lbrace 0, 1, 2, 3, 4, 5, \dots \rbrace
This set is closed under binary operator into (\ast), because for the operation c = a \ast b, for
any a, b \in A, the product c \in A.
The set is not closed under binary operator divide (\div), because, for the operation c = a \div b,
for any a, b \in A, the product c may not be in the set A. If a = 7, b = 2, then c = 3.5. Here a,b \in
A but c \notin A.
Associative Laws
A binary operator \otimes on a set A is associative when it holds the following property −
(x \otimes y) \otimes z = x \otimes (y \otimes z), where x, y, z \in A
Example
Let A = \lbrace 1, 2, 3, 4 \rbrace
The operator plus ( + ) is associative because for any three elements, x,y,z \in A, the property (x
+ y) + z = x + ( y + z ) holds.
The operator minus ( - ) is not associative since
( x - y ) - z \ne x - ( y - z )
Commutative Laws
A binary operator \otimes on a set A is commutative when it holds the following property −
x \otimes y = y \otimes x, where x, y \in A
Example
Let A = \lbrace 1, 2, 3, 4 \rbrace
The operator plus ( + ) is commutative because for any two elements, x,y \in A, the property x +
y = y + x holds.
The operator minus ( - ) is not associative since
x - y \ne y - x
Distributive Laws
Two binary operators \otimes and \circledast on a set A, are distributive over operator \
circledast when the following property holds −
x \otimes (y \circledast z) = (x \otimes y) \circledast (x \otimes z), where x, y, z \in A
Example
Let A = \lbrace 1, 2, 3, 4 \rbrace
The operators into ( * ) and plus ( + ) are distributive over operator + because for any three
elements, x,y,z \in A, the property x * ( y + z ) = ( x * y ) + ( x * z ) holds.
However, these operators are not distributive over * since
x + ( y * z ) \ne ( x + y ) * ( x + z )
Identity Element
A set A has an identity element with respect to a binary operation \otimes on A, if there exists an
element e \in A, such that the following property holds −
e \otimes x = x \otimes e, where x \in A
Example
Let Z = \lbrace 0, 1, 2, 3, 4, 5, \dots \rbrace
The element 1 is an identity element with respect to operation * since for any element x \in Z,
1*x=x*1
On the other hand, there is no identity element for the operation minus ( - )
Inverse
If a set A has an identity element e with respect to a binary operator \otimes , it is said to have an
inverse whenever for every element x \in A, there exists another element y \in A, such that the
following property holds −
x \otimes y = e
Example
Let A = \lbrace \dots -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, \dots \rbrace
Given the operation plus ( + ) and e = 0, the inverse of any element x is (-x) since x + (x) = 0
De Morgan's Law
De Morgan’s Laws gives a pair of transformations between union and intersection of two (or
more) sets in terms of their complements. The laws are −
(A \cup B)' = A' \cap B'
(A \cap B)' = A' \cup B'
Example
Let A = \lbrace 1, 2, 3, 4 \rbrace ,B = \lbrace 1, 3, 5, 7 \rbrace, and
Universal set U = \lbrace 1, 2, 3, \dots, 9, 10 \rbrace
A' = \lbrace 5, 6, 7, 8, 9, 10 \rbrace
B' = \lbrace 2, 4, 6, 8, 9, 10 \rbrace
A \cup B = \lbrace 1, 2, 3, 4, 5, 7 \rbrace
A \cap B = \lbrace 1, 3 \rbrace
(A \cup B)' = \lbrace 6, 8, 9, 10 \rbrace
A' \cap B' = \lbrace 6, 8, 9, 10 \rbrace
Thus, we see that (A \cup B)' = A' \cap B'
(A \cap B)' = \lbrace 2, 4, 5, 6, 7, 8, 9, 10 \rbrace
A' \cup B' = \lbrace 2, 4, 5, 6, 7, 8, 9, 10 \rbrace
Thus, we see that (A \cap B)' = A' \cup B'
Monoid
A monoid is a semigroup with an identity element. The identity element (denoted by e or E) of a
set S is an element such that (a \omicron e) = a, for every element a \in S. An identity element is
also called a unit element. So, a monoid holds three properties simultaneously − Closure,
Associative, Identity element.
Example
The set of positive integers (excluding zero) with multiplication operation is a monoid. S = \
lbrace 1, 2, 3, \dots \rbrace
Here closure property holds as for every pair (a, b) \in S, (a \times b) is present in the set S. [For
example, 1 \times 2 = 2 \in S and so on]
Associative property also holds for every element a, b, c \in S, (a \times b) \times c = a \times (b \
times c) [For example, (1 \times 2) \times 3 = 1 \times (2 \times 3) = 6 and so on]
Identity property also holds for every element a \in S, (a \times e) = a [For example, (2 \times 1)
= 2, (3 \times 1) = 3 and so on]. Here identity element is 1.
Group
A group is a monoid with an inverse element. The inverse element (denoted by I) of a set S is an
element such that (a \omicron I) = (I \omicron a) = a, for each element a \in S. So, a group holds
four properties simultaneously - i) Closure, ii) Associative, iii) Identity element, iv) Inverse
element. The order of a group G is the number of elements in G and the order of an element in a
group is the least positive integer n such that an is the identity element of that group G.
Examples
The set of N \times N non-singular matrices form a group under matrix multiplication operation.
The product of two N \times N non-singular matrices is also an N \times N non-singular matrix
which holds closure property.
Matrix multiplication itself is associative. Hence, associative property holds.
The set of N \times N non-singular matrices contains the identity matrix holding the identity
element property.
As all the matrices are non-singular they all have inverse elements which are also nonsingular
matrices. Hence, inverse property also holds.
Abelian Group
An abelian group G is a group for which the element pair (a,b) \in G always holds commutative
law. So, a group holds five properties simultaneously - i) Closure, ii) Associative, iii) Identity
element, iv) Inverse element, v) Commutative.
Example
The set of positive integers (including zero) with addition operation is an abelian group. G = \
lbrace 0, 1, 2, 3, \dots \rbrace
Here closure property holds as for every pair (a, b) \in S, (a + b) is present in the set S. [For
example, 1 + 2 = 2 \in S and so on]
Associative property also holds for every element a, b, c \in S, (a + b) + c = a + (b + c) [For
example, (1 +2) + 3 = 1 + (2 + 3) = 6 and so on]
Identity property also holds for every element a \in S, (a \times e) = a [For example, (2 \times 1)
= 2, (3 \times 1) = 3 and so on]. Here, identity element is 1.
Commutative property also holds for every element a \in S, (a \times b) = (b \times a) [For
example, (2 \times 3) = (3 \times 2) = 3 and so on]
Hasse Diagram
The Hasse diagram of a poset is the directed graph whose vertices are the element of that poset
and the arcs covers the pairs (x, y) in the poset. If in the poset x < y, then the point x appears
lower than the point y in the Hasse diagram. If x<y<z in the poset, then the arrow is not shown
between x and z as it is implicit.
Example
The poset of subsets of \lbrace 1, 2, 3 \rbrace = \lbrace \emptyset, \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 is shown by the following Hasse diagram −
Linearly Ordered Set
A Linearly ordered set or Total ordered set is a partial order set in which every pair of element is
comparable. The elements a, b \in S are said to be comparable if either a \le b or b \le a holds.
Trichotomy law defines this total ordered set. A totally ordered set can be defined as a
distributive lattice having the property \lbrace a \lor b, a \land b \rbrace = \lbrace a, b \rbrace for
all values of a and b in set S.
Example
The powerset of \lbrace a, b \rbrace ordered by \subseteq is a totally ordered set as all the
elements of the power set P = \lbrace \emptyset, \lbrace a \rbrace, \lbrace b \rbrace, \lbrace a, b\
rbrace \rbrace are comparable.
Example of non-total order set
A set S = \lbrace 1, 2, 3, 4, 5, 6 \rbrace under operation x divides y is not a total ordered set.
Here, for all (x, y) \in S, x | y have to hold but it is not true that 2 | 3, as 2 does not divide 3 or 3
does not divide 2. Hence, it is not a total ordered set.
Lattice
A lattice is a poset (L, \le) for which every pair \lbrace a, b \rbrace \in L has a least upper bound
(denoted by a \lor b) and a greatest lower bound (denoted by a \land b). LUB (\lbrace a,b \
rbrace) is called the join of a and b. GLB (\lbrace a,b \rbrace ) is called the meet of a and b.
Example
This above figure is a lattice because for every pair \lbrace a, b \rbrace \in L, a GLB and a LUB
exists.
This above figure is a not a lattice because GLB (a, b) and LUB (e, f) does not exist.
Some other lattices are discussed below −
Bounded Lattice
A lattice L becomes a bounded lattice if it has a greatest element 1 and a least element 0.
Complemented Lattice
A lattice L becomes a complemented lattice if it is a bounded lattice and if every element in the
lattice has a complement. An element x has a complement x’ if \exists x(x \land x’=0 and x \lor
x’ = 1)
Distributive Lattice
If a lattice satisfies the following two distribute properties, it is called a distributive lattice.
a \lor (b \land c) = (a \lor b) \land (a \lor c)
a \land (b \lor c) = (a \land b) \lor (a \land c)
Modular Lattice
If a lattice satisfies the following property, it is called modular lattice.
a \land( b \lor (a \land d)) = (a \land b) \lor (a \land d)
Properties of Lattices
Idempotent Properties
a \lor a = a
a \land a = a
Absorption Properties
a \lor (a \land b) = a
a \land (a \lor b) = a
Commutative Properties
a \lor b = b \lor a
a \land b = b \land a
Associative Properties
a \lor (b \lor c) = (a \lor b) \lor c
a \land (b \land c) = (a \land b) \land c
Dual of a Lattice
The dual of a lattice is obtained by interchanging the '\lor' and '\land' operations.
Example
The dual of \lbrack a \lor (b \land c) \rbrack\ is\ \lbrack a \land (b \lor c) \rbrack
Permutations
A permutation is an arrangement of some elements in which order matters. In other words a
Permutation is an ordered Combination of elements.
Examples
From a set S ={x, y, z} by taking two at a time, all permutations are −
xy, yx, xz, zx, yz, zy .
We have to form a permutation of three digit numbers from a set of numbers S = \
lbrace 1, 2, 3 \rbrace. Different three digit numbers will be formed when we
arrange the digits. The permutation will be = 123, 132, 213, 231, 312, 321
Number of Permutations
The number of permutations of ‘n’ different things taken ‘r’ at a time is denoted by n_{P_{r}}
n_{P_{r}} = \frac{n!}{(n - r)!}
where n! = 1.2.3. \dots (n - 1).n
Proof − Let there be ‘n’ different elements.
There are n number of ways to fill up the first place. After filling the first place (n-1) number of
elements is left. Hence, there are (n-1) ways to fill up the second place. After filling the first and
second place, (n-2) number of elements is left. Hence, there are (n-2) ways to fill up the third
place. We can now generalize the number of ways to fill up r-th place as [n – (r–1)] = n–r+1
So, the total no. of ways to fill up from first place up to r-th-place −
n_{ P_{ r } } = n (n-1) (n-2)..... (n-r + 1)
= [n(n-1)(n-2) ... (n-r + 1)] [(n-r)(n-r-1) \dots 3.2.1] / [(n-r)(n-r-1) \dots 3.2.1]
Hence,
n_{ P_{ r } } = n! / (n-r)!
Some important formulas of permutation
If there are n elements of which a_1 are alike of some kind, a_2 are alike of
another kind; a_3 are alike of third kind and so on and a_r are of r^{th} kind,
where (a_1 + a_2 + ... a_r) = n.
Then, number of permutations of these n objects is = n! / [(a_1!(a_2!) \dots (a_r!)].
Number of permutations of n distinct elements taking n elements at a time
= n_{P_n} = n!
The number of permutations of n dissimilar elements taking r elements at a time,
when x particular things always occupy definite places = n-x_{p_{r-x}}
The number of permutations of n dissimilar elements when r specified things
always come together is − r! (n−r+1)!
The number of permutations of n dissimilar elements when r specified things
never come together is − n!–[r! (n−r+1)!]
The number of circular permutations of n different elements taken x elements at
time = ^np_{x}/x
The number of circular permutations of n different things = ^np_{n}/n
Some Problems
Problem 1 − From a bunch of 6 different cards, how many ways we can permute it?
Solution − As we are taking 6 cards at a time from a deck of 6 cards, the permutation will
be ^6P_{6} = 6! = 720
Problem 2 − In how many ways can the letters of the word 'READER' be arranged?
Solution − There are 6 letters word (2 E, 1 A, 1D and 2R.) in the word 'READER'.
The permutation will be = 6! /\: [(2!) (1!)(1!)(2!)] = 180.
Problem 3 − In how ways can the letters of the word 'ORANGE' be arranged so that the
consonants occupy only the even positions?
Solution − There are 3 vowels and 3 consonants in the word 'ORANGE'. Number of ways of
arranging the consonants among themselves = ^3P_{3} = 3! = 6. The remaining 3 vacant places
will be filled up by 3 vowels in ^3P_{3} = 3! = 6 ways. Hence, the total number of permutation
is 6 \times 6 = 36
Combinations
A combination is selection of some given elements in which order does not matter.
The number of all combinations of n things, taken r at a time is −
^nC_{ { r } } = \frac { n! } { r!(n-r)! }
Problem 1
Find the number of subsets of the set \lbrace1, 2, 3, 4, 5, 6\rbrace having 3 elements.
Solution
The cardinality of the set is 6 and we have to choose 3 elements from the set. Here, the ordering
does not matter. Hence, the number of subsets will be ^6C_{3} = 20.
Problem 2
There are 6 men and 5 women in a room. In how many ways we can choose 3 men and 2 women
from the room?
Solution
The number of ways to choose 3 men from 6 men is ^6C_{3} and the number of ways to choose
2 women from 5 women is ^5C_{2}
Hence, the total number of ways is − ^6C_{3} \times ^5C_{2} = 20 \times 10 = 200
Problem 3
How many ways can you choose 3 distinct groups of 3 students from total 9 students?
Solution
Let us number the groups as 1, 2 and 3
For choosing 3 students for 1st group, the number of ways − ^9C_{3}
The number of ways for choosing 3 students for 2nd group after choosing 1st group − ^6C_{3}
The number of ways for choosing 3 students for 3rd group after choosing 1st and 2nd group
− ^3C_{3}
Hence, the total number of ways = ^9C_{3} \times ^6C_{3} \times ^3C_{3} = 84 \times 20 \
times 1 = 1680
Pascal's Identity
Pascal's identity, first derived by Blaise Pascal in 17 th century, states that the number of ways to
choose k elements from n elements is equal to the summation of number of ways to choose (k-1)
elements from (n-1) elements and the number of ways to choose elements from n-1 elements.
Mathematically, for any positive integers k and n: ^nC_{k} = ^n{^-}^1C_{k-1} +
^n{^-}^1{C_k}
Proof −
^n{^-}^1C_{k-1} + ^n{^-}^1{C_k}
= \frac{ (n-1)! } { (k-1)!(n-k)! } + \frac{ (n-1)! } { k!(n-k-1)! }
= (n-1)!(\frac{ k } { k!(n-k)! } + \frac{ n-k } { k!(n-k)! } )
= (n-1)! \frac{ n } { k!(n-k)! }
= \frac{ n! } { k!(n-k)! }
= n_{ C_{ k } }
Pigeonhole Principle
In 1834, German mathematician, Peter Gustav Lejeune Dirichlet, stated a principle which he
called the drawer principle. Now, it is known as the pigeonhole principle.
Pigeonhole Principle states that if there are fewer pigeon holes than total number of pigeons and
each pigeon is put in a pigeon hole, then there must be at least one pigeon hole with more than
one pigeon. If n pigeons are put into m pigeonholes where n > m, there's a hole with more than
one pigeon.
Examples
Ten men are in a room and they are taking part in handshakes. If each person
shakes hands at least once and no man shakes the same man’s hand more than
once then two men took part in the same number of handshakes.
There must be at least two people in a class of 30 whose names start with the same
alphabet.
Basic Concepts
Probability theory was invented in the 17th century by two French mathematicians, Blaise Pascal
and Pierre de Fermat, who were dealing with mathematical problems regarding of chance.
Before proceeding to details of probability, let us get the concept of some definitions.
Random Experiment − An experiment in which all possible outcomes are known and the exact
output cannot be predicted in advance is called a random experiment. Tossing a fair coin is an
example of random experiment.
Sample Space − When we perform an experiment, then the set S of all possible outcomes is
called the sample space. If we toss a coin, the sample space S = \left \{ H, T \right \}
Event − Any subset of a sample space is called an event. After tossing a coin, getting Head on
the top is an event.
The word "probability" means the chance of occurrence of a particular event. The best we can
say is how likely they are to happen, using the idea of probability.
Probability\:of\:occurence\:of\:an\:event = \frac{Total\:number\:of\:favourable \: outcome}
{Total\:number\:of\:Outcomes}
As the occurrence of any event varies between 0% and 100%, the probability varies between 0
and 1.
Steps to find the probability
Step 1 − Calculate all possible outcomes of the experiment.
Step 2 − Calculate the number of favorable outcomes of the experiment.
Step 3 − Apply the corresponding probability formula.
Tossing a Coin
If a coin is tossed, there are two possible outcomes − Heads (H) or Tails (T)
So, Total number of outcomes = 2
Hence, the probability of getting a Head (H) on top is 1/2 and the probability of getting a
Tails (T) on top is 1/2
Throwing a Dice
When a dice is thrown, six possible outcomes can be on the top − 1, 2, 3, 4, 5, 6.
The probability of any one of the numbers is 1/6
The probability of getting even numbers is 3/6 = 1/2
The probability of getting odd numbers is 3/6 = 1/2
Taking Cards From a Deck
From a deck of 52 cards, if one card is picked find the probability of an ace being drawn and also
find the probability of a diamond being drawn.
Total number of possible outcomes − 52
Outcomes of being an ace − 4
Probability of being an ace = 4/52 = 1/13
Probability of being a diamond = 13/52 = 1/4
Probability Axioms
The probability of an event always varies from 0 to 1. [0 \leq P(x) \leq 1]
For an impossible event the probability is 0 and for a certain event the probability
is 1.
If the occurrence of one event is not influenced by another event, they are called
mutually exclusive or disjoint.
If A_1, A_2....A_n are mutually exclusive/disjoint events, then P(A_i \cap A_j) = \
emptyset for i \ne j and P(A_1 \cup A_2 \cup.... A_n) = P(A_1) + P(A_2)+.....
P(A_n)
Properties of Probability
If there are two events x and \overline{x}which are complementary, then the
probability of the complementary event is −
p(\overline{x}) = 1-p(x)
For two non-disjoint events A and B, the probability of the union of two events −
P(A \cup B) = P(A) + P(B)
If an event A is a subset of another event B (i.e. A \subset B), then the probability
of A is less than or equal to the probability of B. Hence, A \subset
B implies P(A) \leq p(B)
Conditional Probability
The conditional probability of an event B is the probability that the event will occur given an
event A has already occurred. This is written as P(B|A).
Mathematically − P(B|A) = P(A \cap B)/ P(A)
If event A and B are mutually exclusive, then the conditional probability of event B after the
event A will be the probability of event B that is P(B).
Problem 1
In a country 50% of all teenagers own a cycle and 30% of all teenagers own a bike and cycle.
What is the probability that a teenager owns bike given that the teenager owns a cycle?
Solution
Let us assume A is the event of teenagers owning only a cycle and B is the event of teenagers
owning only a bike.
So, P(A) = 50/100 = 0.5 and P(A \cap B) = 30/100 = 0.3 from the given problem.
P(B|A) = P(A \cap B)/ P(A) = 0.3/ 0.5 = 0.6
Hence, the probability that a teenager owns bike given that the teenager owns a cycle is 60%.
Problem 2
In a class, 50% of all students play cricket and 25% of all students play cricket and volleyball.
What is the probability that a student plays volleyball given that the student plays cricket?
Solution
Let us assume A is the event of students playing only cricket and B is the event of students
playing only volleyball.
So, P(A) = 50/100 =0.5 and P(A \cap B) = 25/ 100 =0.25 from the given problem.
P\lgroup B\rvert A \rgroup= P\lgroup A\cap B\rgroup/P\lgroup A \rgroup =0.25/0.5=0.5
Hence, the probability that a student plays volleyball given that the student plays cricket is 50%.
Problem 3
Six good laptops and three defective laptops are mixed up. To find the defective laptops all of
them are tested one-by-one at random. What is the probability to find both of the defective
laptops in the first two pick?
Solution
Let A be the event that we find a defective laptop in the first test and B be the event that we find
a defective laptop in the second test.
Hence, P(A \cap B) = P(A)P(B|A) =3/9 \times 2/8 = 1/12
Bayes' Theorem
Theorem − If A and B are two mutually exclusive events, where P(A) is the probability of A
and P(B) is the probability of B, P(A | B) is the probability of A given that B is true. P(B | A) is
the probability of B given that A is true, then Bayes’ Theorem states −
P(A|B) = \frac{P(B|A) P(A)}{\sum_{i = 1}^{n}P(B|Ai)P(Ai)}
Application of Bayes' Theorem
In situations where all the events of sample space are mutually exclusive events.
In situations where either P( A_i \cap B ) for each A_i or P( A_i ) and P(B|
A_i) for each A_i is known.
Problem
Consider three pen-stands. The first pen-stand contains 2 red pens and 3 blue pens; the second
one has 3 red pens and 2 blue pens; and the third one has 4 red pens and 1 blue pen. There is
equal probability of each pen-stand to be selected. If one pen is drawn at random, what is the
probability that it is a red pen?
Solution
Let A_i be the event that ith pen-stand is selected.
Here, i = 1,2,3.
Since probability for choosing a pen-stand is equal, P(A_i) = 1/3
Let B be the event that a red pen is drawn.
The probability that a red pen is chosen among the five pens of the first pen-stand,
P(B|A_1) = 2/5
The probability that a red pen is chosen among the five pens of the second pen-stand,
P(B|A_2) = 3/5
The probability that a red pen is chosen among the five pens of the third pen-stand,
P(B|A_3) = 4/5
According to Bayes' Theorem,
P(B) = P(A_1).P(B|A_1) + P(A_2).P(B|A_2) + P(A_3).P(B|A_3)
= 1/3 . 2/5\: +\: 1/3 . 3/5\: +\: 1/3 . 4/5
= 3/5
Mathematical Induction
Mathematical induction, is a technique for proving results or establishing statements for natural
numbers. This part illustrates the method through a variety of examples.
Definition
Mathematical Induction is a mathematical technique which is used to prove a statement, a
formula or a theorem is true for every natural number.
The technique involves two steps to prove a statement, as stated below −
Step 1(Base step) − It proves that a statement is true for the initial value.
Step 2(Inductive step) − It proves that if the statement is true for the n th iteration (or number n),
then it is also true for (n+1)th iteration ( or number n+1).
How to Do It
Step 1 − Consider an initial value for which the statement is true. It is to be shown that the
statement is true for n = initial value.
Step 2 − Assume the statement is true for any value of n = k. Then prove the statement is true
for n = k+1. We actually break n = k+1 into two parts, one part is n = k (which is already
proved) and try to prove the other part.
Problem 1
3^n-1 is a multiple of 2 for n = 1, 2, ...
Solution
Step 1 − For n = 1, 3^1-1 = 3-1 = 2 which is a multiple of 2
Step 2 − Let us assume 3^n-1 is true for n=k, Hence, 3^k -1 is true (It is an assumption)
We have to prove that 3^{k+1}-1 is also a multiple of 2
3^{k+1} - 1 = 3 \times 3^k - 1 = (2 \times 3^k) + (3^k - 1)
The first part (2 \times 3k) is certain to be a multiple of 2 and the second part (3k -1) is also true
as our previous assumption.
Hence, 3^{k+1} – 1 is a multiple of 2.
So, it is proved that 3^n – 1 is a multiple of 2.
Problem 2
1 + 3 + 5 + ... + (2n-1) = n^2 for n = 1, 2, \dots
Solution
Step 1 − For n=1, 1 = 1^2, Hence, step 1 is satisfied.
Step 2 − Let us assume the statement is true for n=k.
Hence, 1 + 3 + 5 + \dots + (2k-1) = k^2 is true (It is an assumption)
We have to prove that 1 + 3 + 5 + ... + (2(k+1)-1) = (k+1)^2 also holds
1 + 3 + 5 + \dots + (2(k+1) - 1)
= 1 + 3 + 5 + \dots + (2k+2 - 1)
= 1 + 3 + 5 + \dots + (2k + 1)
= 1 + 3 + 5 + \dots + (2k - 1) + (2k + 1)
= k^2 + (2k + 1)
= (k + 1)^2
So, 1 + 3 + 5 + \dots + (2(k+1) - 1) = (k+1)^2 hold which satisfies the step 2.
Hence, 1 + 3 + 5 + \dots + (2n - 1) = n^2 is proved.
Problem 3
Prove that (ab)^n = a^nb^n is true for every natural number n
Solution
Step 1 − For n=1, (ab)^1 = a^1b^1 = ab, Hence, step 1 is satisfied.
Step 2 − Let us assume the statement is true for n=k, Hence, (ab)^k = a^kb^k is true (It is an
assumption).
We have to prove that (ab)^{k+1} = a^{k+1}b^{k+1} also hold
Given, (ab)^k = a^k b^k
Or, (ab)^k (ab) = (a^k b^k ) (ab) [Multiplying both side by 'ab']
Or, (ab)^{k+1} = (aa^k) ( bb^k)
Or, (ab)^{k+1} = (a^{k+1}b^{k+1})
Hence, step 2 is proved.
So, (ab)^n = a^nb^n is true for every natural number n.
Strong Induction
Strong Induction is another form of mathematical induction. Through this induction technique,
we can prove that a propositional function, P(n) is true for all positive integers, n, using the
following steps −
Step 1(Base step) − It proves that the initial proposition P(1) true.
Step 2(Inductive step) − It proves that the conditional statement [P(1) \land P(2) \
land P(3) \land \dots \land P(k)] → P(k + 1) is true for positive integers k.
Discrete Mathematics - Recurrence Relation
In this chapter, we will discuss how recursive techniques can derive sequences and be used for
solving counting problems. The procedure for finding the terms of a sequence in a recursive
manner is called recurrence relation. We study the theory of linear recurrence relations and
their solutions. Finally, we introduce generating functions for solving recurrence relations.
Definition
A recurrence relation is an equation that recursively defines a sequence where the next term is a
function of the previous terms (Expressing F_n as some combination of F_i with i < n).
Example − Fibonacci series − F_n = F_{n-1} + F_{n-2}, Tower of Hanoi − F_n = 2F_{n-1} + 1
Advertisements
AD
AD
AD
About us
Refund Policy
Terms of use
Privacy Policy
FAQ's
Contact
We make use of First and third party cookies to improve our user experience. By using this website, you agree
with our Cookies Policy. Agree Learn more