Podcast
Questions and Answers
When we say that 3 divides 12, which of the following statements is true?
When we say that 3 divides 12, which of the following statements is true?
5 divides 12 is true.
5 divides 12 is true.
False
What is the notation for saying that 3 does not divide 12?
What is the notation for saying that 3 does not divide 12?
5 ∤ 12
If a does not divide b, we write it as a ______ b.
If a does not divide b, we write it as a ______ b.
Signup and view all the answers
Match the following terms with their definitions:
Match the following terms with their definitions:
Signup and view all the answers
Which of the following pairs correctly demonstrates the relationship between factors and multiples?
Which of the following pairs correctly demonstrates the relationship between factors and multiples?
Signup and view all the answers
If a divides b, then a is a multiple of b.
If a divides b, then a is a multiple of b.
Signup and view all the answers
Give an example of two integers where the first is a factor of the second.
Give an example of two integers where the first is a factor of the second.
Signup and view all the answers
What is the hexadecimal representation of the decimal number 23670?
What is the hexadecimal representation of the decimal number 23670?
Signup and view all the answers
The binary expansion (11011)2 equals 27 in decimal.
The binary expansion (11011)2 equals 27 in decimal.
Signup and view all the answers
What is the decimal expansion of the octal number (111)8?
What is the decimal expansion of the octal number (111)8?
Signup and view all the answers
(101011111)2 in decimal is equal to ______.
(101011111)2 in decimal is equal to ______.
Signup and view all the answers
Match the following numeral systems with their respective base:
Match the following numeral systems with their respective base:
Signup and view all the answers
Which of the following digits is NOT used in hexadecimal?
Which of the following digits is NOT used in hexadecimal?
Signup and view all the answers
The base of the binary numeral system is 10.
The base of the binary numeral system is 10.
Signup and view all the answers
How many digits are used in the octal numeral system?
How many digits are used in the octal numeral system?
Signup and view all the answers
What is the result of 228 mod 119?
What is the result of 228 mod 119?
Signup and view all the answers
The statement 21 ≡ −8 (mod 6) is true.
The statement 21 ≡ −8 (mod 6) is true.
Signup and view all the answers
What is the octal representation of the binary number (011 111 010 111 100)2?
What is the octal representation of the binary number (011 111 010 111 100)2?
Signup and view all the answers
Calculate the value of -10101 mod 333.
Calculate the value of -10101 mod 333.
Signup and view all the answers
The hexadecimal representation of the binary number (0011 1110 1011 1100)2 is (3EBC)16.
The hexadecimal representation of the binary number (0011 1110 1011 1100)2 is (3EBC)16.
Signup and view all the answers
To convert the number 25 into binary, the last digit is obtained by computing 25 mod ______.
To convert the number 25 into binary, the last digit is obtained by computing 25 mod ______.
Signup and view all the answers
Convert the decimal number 231 to its binary expansion.
Convert the decimal number 231 to its binary expansion.
Signup and view all the answers
To convert to octal, group the binary digits into blocks of ____.
To convert to octal, group the binary digits into blocks of ____.
Signup and view all the answers
Match the bases with their corresponding number of digits:
Match the bases with their corresponding number of digits:
Signup and view all the answers
Match the numbers with their corresponding binary expansions:
Match the numbers with their corresponding binary expansions:
Signup and view all the answers
Which of the following is NOT a valid representation of base 16?
Which of the following is NOT a valid representation of base 16?
Signup and view all the answers
What is the result of $110 \times 101$ in binary?
What is the result of $110 \times 101$ in binary?
Signup and view all the answers
The number 53 ≡ 108 (mod 7) is true.
The number 53 ≡ 108 (mod 7) is true.
Signup and view all the answers
In modular arithmetic, the operation 'mod' can yield a result that is greater than the divisor.
In modular arithmetic, the operation 'mod' can yield a result that is greater than the divisor.
Signup and view all the answers
What is the binary expansion of the octal number (1604)8?
What is the binary expansion of the octal number (1604)8?
Signup and view all the answers
What are the digits used in base 8?
What are the digits used in base 8?
Signup and view all the answers
What is the purpose of modular exponentiation?
What is the purpose of modular exponentiation?
Signup and view all the answers
The product of binary numbers (110)2 and (101)2 is (11110)2.
The product of binary numbers (110)2 and (101)2 is (11110)2.
Signup and view all the answers
What is the binary result of the addition of (1110)2 and (1011)2?
What is the binary result of the addition of (1110)2 and (1011)2?
Signup and view all the answers
Given integers a and d, d > 0, the quotient is defined as a div d and the remainder is defined as a mod _____.
Given integers a and d, d > 0, the quotient is defined as a div d and the remainder is defined as a mod _____.
Signup and view all the answers
Match the binary numbers with their decimal equivalents:
Match the binary numbers with their decimal equivalents:
Signup and view all the answers
When performing modular operations, what is a common technique for the exponent?
When performing modular operations, what is a common technique for the exponent?
Signup and view all the answers
What is the initial value of x set to in the modular exponentiation algorithm?
What is the initial value of x set to in the modular exponentiation algorithm?
Signup and view all the answers
The algorithm for division and modulus requires that the divisor must be equal to or less than the dividend.
The algorithm for division and modulus requires that the divisor must be equal to or less than the dividend.
Signup and view all the answers
If 5 | 25 and 5 | 30, what can be concluded?
If 5 | 25 and 5 | 30, what can be concluded?
Signup and view all the answers
If a | b and b | c, then it is false that a | c.
If a | b and b | c, then it is false that a | c.
Signup and view all the answers
What are the quotient and remainder when 101 is divided by 11?
What are the quotient and remainder when 101 is divided by 11?
Signup and view all the answers
In the equation $101 = 11 \times 9 + 2$, the number 11 is called the ______.
In the equation $101 = 11 \times 9 + 2$, the number 11 is called the ______.
Signup and view all the answers
When 25 is divided by 5, what is the remainder?
When 25 is divided by 5, what is the remainder?
Signup and view all the answers
Given a = -7 and d = 3, what are the values of q and r?
Given a = -7 and d = 3, what are the values of q and r?
Signup and view all the answers
If a | b and a | c, then a | ______ + nc whenever n is any integer.
If a | b and a | c, then a | ______ + nc whenever n is any integer.
Signup and view all the answers
Study Notes
EMath 105 - Discrete Mathematics I for SE
- Course title: EMath 105 - Discrete Mathematics I for SE
- Prepared by: Engr. Alimo-ot and Engr. Sacramento, ECE Department
Number Theory
- Number theory is the study of integers, their properties, and their relationship to algorithms.
- Number theory is important in many modern algorithms. This includes hash functions, cryptography, digital signatures, and online security.
The Integers and Division
- Students are already familiar with integers and division.
- Specific notations, terminology, and theorems, not previously known to the students, form the basics of number theory.
The Divides Operator
- Notation:
3 | 12
means 3 evenly divides 12 - Notation:
5 \ 12
means 5 does not evenly divide 12 - Read '3 | 12' as '3 divides 12'
- Read '5 \ 12' as '5 does not divide 12'
Divides, Factor, Multiple Relationship
- Definition:
a | b
(a divides b) means there is an integerc
such thatb = a * c
. - If
a | b
, thena
is a factor or divisor ofb
andb
is a multiple ofa
. - Example:
3 | -12
is True, but3 | 7
is False.
Results on the Divides Operator
- If
a | b
anda | c
, thena | (b + c)
. - If
a | b
, thena | bc
for all integersc
. - If
a | b
andb | c
, thena | c
. - Example: If
5 | 25
and5 | 30
, then5 | (25 + 30)
.
Divides Relation
- Theorem: For any integers
a
,b
, andc
:-
a | 0
- If
a | b
anda | c
, thena | (b + c)
-
a | b
impliesa | bc
for any integerc
- If
a | b
andb | c
, thena | c
-
- Corollary: If
a | b
anda | c
, thena | (mb + nc)
for any integersm
andn
.
Quotient and Remainder
- When dividing
a
byd
,q
is the quotient, andr
is the remainder. -
a = d * q + r
, where0 ≤ r < d
. -
q
= quotientr
= remainderd
= divisora
= dividend - Examples provided: Calculations of 101 / 11 and more examples with different values.
Modular Arithmetic
- "a is congruent to b modulo m" if
m | (a - b)
. - Notation: a ≡ b (mod m).
- Example: 17 ≡ 5 (mod 6) because
6 | (17 - 5)
.
Exercises (True/False)
- Identify whether statements like 7 ≡ 19 (mod 3) are True or False.
Number Systems
- Discusses the decimal, binary, octal, and hexadecimal number systems.
- Decimal uses digits 0-9.
- Binary uses digits 0 and 1.
- Octal uses digits 0-7.
- Hexadecimal uses digits 0-9 and letters A-F (representing 10-15).
Bases of Particular Interest
- Decimal (base 10): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 as digits.
- Binary (base 2): 0, 1 as digits.
- Octal (base 8): 0, 1, 2, 3, 4, 5, 6, 7 as digits.
- Hexadecimal (base 16): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F as digits.
Table: Representation of Integers 0-15
- Table showing the hexadecimal, octal, and binary representations of integers 0 through 15.
Converting to Base b
- Algorithm to convert an integer to a different base
b
. - Find the rightmost digit by calculating the remainder when dividing by
b
. - Recursively apply the process to the quotient, until the quotient becomes 0.
Converting 25 to Binary
- Detailed example of converting 25 to binary representation using the successive division method.
Converting 23670 to Hexadecimal
- Illustrated example of converting 23,670 to hexadecimal.
Binary Expansions
- Most computers use binary expansions.
- Examples of converting binary to decimal and vice versa.
Octal Expansions
- Conversion examples and an example problem.
Hexadecimal Expansions
- Conversion examples.
Base Conversion
- Algorithm to convert an integer to any other base b.
Conversion from/to Binary, Octal and Hexadecimal
- Example problem converting one base to another.
Algorithm for Integer Operations
- Binary addition algorithm.
- Binary multiplication algorithm.
- Algorithm for finding the quotient and the remainder of a division.
- Algorithm for modular exponentiation.
Exercises
- Problems to practice conversion between different bases.
- Problems involving binary addition, multiplication, and modular exponentiation.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz covers key concepts in number theory from EMath 105 - Discrete Mathematics I for SE. Students will learn about integers, division, and the divides operator, along with their relationships in algorithms. Prepare to explore the foundational theorems and notations essential for understanding modern cryptography and security algorithms.