Numbers and Sets Flashcards
What are arithmetic operations?
Arithmetic Operations : + , -, x , / , M^n
a mod b = c ==> a when divided by b gives remainder c
Divisibility - a|b => a divides b , e.g: 2|6
What are various types of numbers?
N: Natural Numbers {0,1,2,… }
Z: Integers {… -3,-2,-1,0,1,2,3,…. }
Q: Rational Numbers { 2/3,4/6,8/23 ,… }
What are factors?
If a|b then a is called a factor of b
What are prime numbers?
If the factors of a number ‘x’ are 1 and x itself, x is called a prime number. Prime numbers have only 2 factors. Hence, 1 is not prime and 2 is the only even prime number.
What is prime factorization?
Any number can be uniquely represented as the product of its prime factors. converting a number into this representation is called prime factorization.
Is there a largest price number?
No. The set of prime numbers is infinite
What are rational numbers?
Numbers of the form p/q. where p,q are integers. The representation of integers in rational format is not unique. one number could have multiple representations (eg: 2/4 = 4/8=8/16 etc). We could get the rational number to the reduced for by getting their greatest common divisor to 1 i.e., gcd(p,q)=1 i.e, remove all the common factors between them.
Unlike Integers which are discrete ( definite next and previous numbers possible). Rational numbers are dense, there is no definite next or previous number)
What are irrational numbers and real numbers?
Irrational numbers cannot be written in the form p/q. eg.: sqrt of all numbers which are not perfect squares.
Real numbers = set of all rational and irrational numbers.
Real numbers extend rational numbers.
Real numbers are dense, like rationals
Every natural number is an integer
Every integer is a rational number
Every rational number is a real number
Complex numbers extend real numbers
What are sets?
A set is a collection of items. Set may be infinite. Sets need not have members of a uniform type. Sets are unordered. Duplicates don’t matter. items in a set are called elements. Sets are best represented diagrammatically by Venn Diagrams.
Sets can also contain other sets.
What is cardinality?
Cardinality of a set is the number of items in the set.
Cardinality could be finite or infinite.
finite sets can be listed out explicitly within {}
Is every collection of items a set?
Not every collection of items is a set. Collection of all sets is not a set.
Russel’s paradox.
What is a subset?
X is subset of Y if every element in X is also an element of Y.
Note: every set is a subset of itself. If set has ‘n’ elements then there is a total of 2^n possible subsets.
if X is subset of Y but X != Y then X is proper subset of Y
How to establish equality of sets?
If X is subset of Y and Y is a subset of X the it implies that X=Y
What are some basic sets?
The empty set has no elements (empty set is a subset of all sets)
powerset - set of subsets of a set.
Note: ø means set with no elements where as {ø} means a set with one empty element. Cardinality of ø is zero, where as cardinality of {ø} =1 (including the empty element)
powerset of ø = {ø}
What is set comprehension?
Set Comprehension is a way to define a set from a different known set.
eg: {x | xє Z , x mod 2=0} =>represents set of All even integers