Unit 2 Flashcards

1
Q

the branch of mathematics concerned with the study of integers.

A

number theory,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In blank, the input and output values must always be integers.

A

integer division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Let x and y be two integers. Then x blank y (denoted x|y) if there is an integer k such that y = kx. “x does not divide y” is denoted by x y. If x divides y, then y is said to be a multiple of x, and x is a factor or divisor of y.

A

divides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In most situations, the number in front of the variable, or the blank, can be any real number

A

coefficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A lank of two numbers is the sum of multiples of those numbers.

A

linear combination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A statement about blank uses variables to denote the integer coefficients. For example, sx + ty is a linear combination of x and y.

A

a generic linear combination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Let x, y, and z be integers. If x|y and x|z, then blank for any integers s and t.

A

x|(sy + tz)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Blank, states that the result of the division (the quotient) and the remainder are unique.

A

Division Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Let n be an integer and let d be a positive integer. Then, there are unique integers q and r, with 0 ≤ r ≤ d - 1, such that blank

A

n = qd + r.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In the lank , the number q is called the quotient and the number r is called the remainder. The operations div and mod produce the quotient and the remainder as a function of n and d.

q = n div d

r = n mod d

A

Division Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The blank is the result of the division of two integers. The quotient and the remainder are unique.

A

Division Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The Division Algorithm works with blank; if any of the inputs is negative, the quotient will be negative per the rules of division.

A

positive integers only

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The operations div and mod produce the quotient (q) and the remainder (r). The blank is d.

A

divisor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The blank is computed by n div d; q = n div d

A

quotient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The blank is computed by n mod d; r = n mod d

A

remainder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To compute the remainder using blank, divide the quotient by n until the remainder is less than n. The remainder is the result. For example, to calculate 38 mod 5, calculate 38 ÷ 5. Five divides into 38 seven times with a remainder of 3. So the quotient is 7 and the remainder is 3. Therefore 38 mod 5 = 3.

A

modular division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The operation defined by adding two numbers and applying modulo n to the result is called blank.

A

addition modulo n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The operation defined by multiplying two numbers and applying modulo n to the result is called blank.

A

multiplication modulo n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

To compute blank follow these steps: add the integers, then apply the modulo. For example, 3 mod 7 + 38 mod 7 = 41 mod 7 = 6.

A

modular addition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

To compute blank follow these steps: multiply the integers, then apply the modulo. For example, (10 mod 3) (7 mod 3) = 70 mod 3 = 1.

A

modular multiplication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The blank is completed as the last step in the process.

A

modular operation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Let n be an integer greater than 1. Let x and y be any two integers. Then x is blank if x mod n = y mod n. The fact that x is congruent to y modulo n is denoted
x ≡ y (mod n).

A

congruent to y modulo n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Let n be an integer greater than 1. Let x and y be any two integers. Then x ≡ y (mod n) if and only if blank.

A

n|(x - y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Two integers x and y are blank if and only if x mod n = y mod n.

A

equivalent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

blank of two integers is denoted by x ≡ y (mod n) and is only true if n|(x − y). In otherwords, 17 and 92 are equivalent mod 5. 17 mod 5 = 2 and 92 mod 5 = 2. The difference between 92 and 17 is a multiple of 5, 75. In formal notation, 17 ≡ 92 (mod 5) is true if and only if 5|(92 − 17) or 5|75-which it does.

A

Congruence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

blank can be useful in the computation of very large values. Therefore, the modular operation does not necessarily have to be performed after the multiplication or addition processes, but can be utilized throughout a computation without changing the final result.

A

Intermediate results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

A number p is blank if it is an integer greater than 1 and its only factors are 1 and p.

A

prime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

A positive integer is blank if it has a factor other than 1 or itself.

A

composite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

every integer greater than 1 is either blank or blank

A

prime or composite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

blank are the basic building blocks of all integers.

A

Prime numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Every positive integer greater than one can be expressed as a product of primes called its blank.

A

prime factorization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Moreover, the prime factorization is unique up to ordering of the blank

A

factors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

The fact that every integer greater than one has a unique prime factorization is central to number theory and is called blank.

A

The Fundamental Theorem of Arithmetic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Every positive integer other than blank can be expressed uniquely as a product of prime numbers where the prime factors are written in non-decreasing order.

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

A blank is a sequence in which each number is equal to or greater than the one that came before.

A

non-decreasing sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

The blankl of a prime factor p in a prime factorization is the number of times p appears in the product of primes.

A

multiplicity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

In order to express the prime factorization more compactly, we use blank in which each distinct prime factor occurs only once and is raised to an exponent that is equal to its multiplicity.

A

exponential notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

The blank states that every positive integer greater than 1 can be expressed as a unique product of prime numbers.

A

fundamental theorem of arithmetic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

A blank (e.g., 1, 1, 2, 3, 17) can have repeated values as long as the values to the right are larger or equal to the values on the left.

A

non-decreasing sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

blank is just a term referring to the number of times a value repeats itself in multiplication. For example, the prime factorization of 40 is 2 x 2 x 2 x 5. The factor 2 has a multiplicity of 3.

A

Multiplicity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

The blank of non-zero integers x and y is the largest positive integer that is a factor of both x and y.

A

greatest common divisor (GCD)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

The blank of non-zero integers x and y is the smallest positive integer that is an integer multiple of both x and y.

A

least common multiple (LCM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

Two numbers are said to be blank if their greatest common divisor is 1.

A

relatively prime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

GCD uses the blank between the prime factorization of two number

A

min

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

LCM uses the blank between the prime factorization of two numbers

A

max

46
Q

GCD(24,50)

A

2min(3,1) * 3min(1,0)5min(0,2) = 2^13^0*5^0 = 2

47
Q

LCM(24,50)

A

2max(3,1) * 3max(1,0) * 5max(0,2) = 2^3 * 3^1 * 5^2 = 600

48
Q

The blank is the largest number that divides the given numbers.

A

GCD

49
Q

To determine the GCD:

A

Find the prime factors of each number, using prime factorization and exponents.
Write both values as the product of the same prime values.
Identify those prime factors that both numbers have in common.
To make a common set you may need to use an integer raised to the power 0, since it is equal to 1 and will not change the product of the prime factors.
Take the smallest exponent of each factor and multiply them.

50
Q

The blank is the lowest common multiple of given numbers.

A

LCM

51
Q

To determine the LCM

A

Find the prime factors of each number, using prime factorization and exponents.
Write both values as the product of the same prime values.
Identify those prime factors that both numbers have in common.
To make a common set you may need to use an integer raised to the power 0, since it is equal to 1 and will not change the product of the prime factors.
Take the maximum exponent of each factor and multiply them.

52
Q

Input: Integer N greater than 1.

Output: “Prime” if N is prime and “Composite” if N is composite.

A

Primality Testing

53
Q

Input: Integer N greater than 1.

Output: “Prime” if N is prime. If N is composite, return two integers greater than 1 whose product is N.

A

Factoring

54
Q

A blank solves a problem by exhaustively searching all possible solutions without using an understanding of the mathematical structure in the problem to eliminate steps.

A

brute force algorithm

55
Q

If N is a composite number, then N has a factor greater than 1 and at most
square root of N

A

Small factors

56
Q

There are an infinite number of blank.

A

primes

57
Q

The blank says how dense primes numbers are among the integers.

A

Prime Number Theorem

58
Q

The blank uses an exhaustive method of dividing the number by every number less than the number. Using this algorithm, start with 2|N. If 2|N yields a result, the N is composite. If not, then continue to test 3|N etc. Continue this process until either N is reached (N is prime) or an integer less than N is found (N is composite).

A

brute force algorithm

59
Q

To shorten the number of possible iterations of divisors, apply the blank. According to this theorem, if a number is composite, then the largest possible factor will be at most the square root of the number. For example, if you were searching for factors of 29, using the brute force method you would divide by 2, 3, 4, 5, 6, 7, 8, 9, . . . , 27, 28, before determining that 29 was prime. However, with the small factors theorem, using the square root of 29, ≈ 5.4, we would only need to divide by 2, 3, 4, and 5 before deciding 29 was prime.

A

small factors theorem

60
Q

The blank addresses the issue of how likely finding a prime number value is out of a range of numbers and provides a formula for determining the density of prime numbers within a range of integers. For example, if you needed to know how likely it is that you will randomly find a prime number between 2 and 1,000,000, the prime number theorem states the likelihood will be 1/ln(1,000,000) ≈ 0.072 or about a 7.2% chance of finding a prime number between 2 and one million. (As a reminder, ln is the abbreviation for natural logarithm.)

A

prime number theorem

61
Q

Let x and y be two positive integers. Then GCD(x, y) = blank

A

GCD(y mod x, x).

62
Q

The greatest common divisor theorem [GCD(x, y) = GCD(y mod x, x)], sometimes referred to as blank, shows that a number k is a factor of both x and y if and only if it is a factor of both x and (y mod x). This is an iterative process, where the variables are reassigned the smaller value results from a previous iteration until y mod x = 0. The point of this process is to divide the divisor by the remainder over and over again (iteratively) until the remainder is 0-the final divisor is the GCD.

A

Euclid’s algorithm

63
Q

Using blank makes the second value y much smaller, and since the result would be the same with either the original or the smaller modular value, the computation is less cumbersome.

A

modular arithmetic

64
Q

Find GCD (32, 48). By inspection you may notice the largest divisor of 32 and 48 is 16. We can verify this using Euclid’s algorithm.
First iteration: x = 32 and y = 48, find y mod x. 48 mod 32 ≡ 16
answer not 0, so continue.
Second iteration: now x = 16 and y = 32. Again, find y mod x. 32 mod 16 ≡ 0, so stop the process.

A

16

65
Q

Let x and y be integers, then there are integers s and t such that

GCD(x, y) = blank

A

sx + ty

66
Q

The blank is not really an “extended” process, it is an add-on process leading to some important ideas used in cryptography.

A

extended Euclidean algorithm

67
Q

The extended Euclidean algorithm states the GCD of x and y can be expressed as a linear combination of x and y [GCD(x, y) = blank

A

sx + ty].

68
Q

To apply the extended Euclidean algorithm, find the blank. Then show that there is an equation that exists where you can write x times some number s plus y times some number t that is equal to the GCD. For example, if x = 874 and y =2415, GCD (874, 2415) = s874 + t2415. To apply the extended Euclidean algorithm find s and t integers. To find the integers, solve the equation r = y - (y div x) x. Recall (y div x) is just the quotient d, so the equation can be written r= y - dx. In this example GCD is 23, s = 47 and t = -17. The equation for the GCD (874, 2415) is 23 = 47(874) - 17(2415).

A

GCD (x, y)

69
Q

A blank of an integer x, is an integer s ∈ {1, 2, …, n-1} such that sx mod n = 1.
Alternatively, we could say that s is the multiplicative inverse of x in Zn.

A

multiplicative inverse mod n (or just inverse mod n)

70
Q

The blank can be used to find the multiplicative inverse of x mod n when it exists.

If GCD(x, n) ≠ 1, then x does not have a multiplicative inverse mod n.
If x and n are relatively prime, then the Extended Euclidean Algorithm finds integers s and t such that 1 = sx + tn.
sx - 1 = -tn. Therefore, (sx mod n) = (1 mod n) = 1. It was shown earlier that if A - B is a multiple of n then (A mod n) = (B mod n).
(s mod n) is the unique multiplicative inverse of x in {0, 1, …, n - 1}.

A

Extended Euclidean Algorithm

71
Q

In ordinary arithmetic the definition of a multiplicative inverse is the product of a number and its multiplicative inverse is always blank.

A

1

72
Q

In blank, an integer x has a multiplicative inverse mod n, s. If the product of integer x and s equal 1 mod n, then x and s are multiplicative inverses.

A

modular arithmetic

73
Q

An interesting characteristic of multiplicative inverses mod n is that they must be blank. It can be shown that not every integer has an inverse mod n. For example, 10 does not have an inverse using modulo 6, but it does using modulo 7. This gives a small hint into what lies in the upcoming lessons where we begin to put all this modular arithmetic together with the quest for large prime numbers.

A

relatively prime

74
Q

Our number system represents integers in blank notation in which each number is represented as sequences of digits. The set of digits has ten symbols: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. The place of a digit in the sequence represents its value. The rightmost digit is multiplied by 1 = 100, the digit that is second to the right is multiplied by 10 = 101. The digit that is kth from the right is multiplied by 10(k-1). For example, the number 256 represents 2·10^2 + 5·10^1 + 6·10^0.

A

decimal

75
Q

A digit in binary notation is called a blank.

A

bit

76
Q

In blank, each place value is a power of 2. For example, the binary number 1011 corresponds to the decimal number 1·23 + 0·22 + 1·21 + 1·20 = 11. In fact, any integer greater than 1 can be used as the base of a number representation system.

A

binary notation

77
Q

Numbers represented in base b require b distinct symbols and each place value is a blank. The fact that every integer greater than 1 gives rise to a unique system for number representation

A

power of b

78
Q

The representation of n base b is called the blank and is denoted by (akak-1…a1a0)b.

A

base b expansion of n

79
Q

The binary number system has only two digits, blank and blank, and the digits are referred to as “bits.”

A

0 and 1

80
Q

Each place value is a power of blank.

A

2

81
Q

Numbers in base b require b distinct symbols and each place value is a power of b. The blank says that any number, n base b, can be uniquely written in a series or decimal expansion of each digit multiplied by its place value.

A

number representation theorem

82
Q

to convert a binary number (e.g., 1001
base2)to a decimal number, follow these steps:

A

Work from left to right to determine the place value. The first digit has a base 2 place value of 2^3
, next is 2^2
, 2^1
, then 2^0
.
Multiply the digit by its base 2 place value. (1 x 2^3
+ 0 x 2^2
+ 0 x 2^1
+ 1 x 2^0
= 1 x 8 + 0 x 4 + 0 x 2 + 1 x 1 = 9base10
)

83
Q

In blank, numbers are represented base 16.

A

hexadecimal notation (or hex for short),

84
Q

The 16 digits in hex are the usual 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 along with blank.The table below shows each hexadecimal digit, its decimal encoding, and its binary encoding. Leading zeroes are added to the binary encodings so that all the encodings have exactly 4 bits.

A

A, B, C, D, E, F.

85
Q

A blank which consists of 8 bits, can be represented by a 2-digit hexadecimal number.

A

byte

86
Q

The blank system has sixteen digits 0-9 and A-F. Each digit in a hex number is a power of 16.

A

hexadecimal (hex) number

87
Q

A byte is blank (binary digits). Each byte can be represented by a 2-digit hexadecimal number.

A

8 bits

88
Q

To convert the hex number, 3AFbase16
to a decimal value multiply each digit by its place value

A

3 x 16^2
+ A x 16^1
+ F x 16^0
= 3 x 16^2
+ 10 x 16^1
+ 15 x 16^0
= 3 x 256 + 10 x 16 + 15 x 1 = 943

89
Q

To convert a decimal value to a blank requires an iterative process of the mod and div functions. The smallest valued digits (right-most digit in the iteration) is found using n mod b. The next digits are determined using n div b in the iteration

A

number n, base b

90
Q

convert the decimal value 482 to a base 7 number.

A

482base10 -> base7
(482 div 7 )(482 mod7)
(68)(6)
(68 div7)(68 mod 7)(6)
(9)(5)(6)
(9 div 7)(9 mod 7)(5)(6)
(1)(2)(5)(6)
1256 base 7 is equal to 482 base10

91
Q

The formula blank
determines the length of an integer value.

A

log base b (n+1)

92
Q

the number of digits required to display 4,324,783 in base 16 would be:

A

log base 16 (4324783 + 1) = 6 digits

93
Q

The number of loops in the algorithm is the blank in the binary representation of the exponent.

A

number of bits

94
Q

The following are the steps in fast integer exponentiation

A

Create a binary expansion of the exponent.
Use this expansion as the new exponent of the base.
Using the addition of exponents property (
) write the expression as a multiplication of the bases with each term of the expansion as an exponent.
Because each exponent is now a power of 2, calculate each successive exponentiation using a “squaring function.”

95
Q

The binary representation of 18 is 10010. What expression is equivalent to b18?

A

18 = 1·24 + 0·23 + 0·22 + 1·21 + 0·20 = 24 + 21
b^2^4 + + b^2^1

96
Q

Blank applies intermediate modular arithmetic steps that keep the values within the iterative process smaller.

A

Iterative fast exponentiation (modular exponentiation)

97
Q

The blank in the iterative algorithm is the number of bits in the binary representation of the exponent.

A

number of loops

98
Q

Yhe encryption is a function whose domain (input value) is the characters possible in the message (m), and range (output value) is the set of all ciphertexts, c. Because this function is one-to- one, then the inverse function or blank function’s domain is c and range is m; therefore, mapping the ciphertext back to the correct original plaintext message.

A

decryption

99
Q

In a blank, Alice and Bob must meet in advance (or communicate over a reliably secure channel) to decide on the value of a shared secret key.

A

symmetric key cryptosystem,

100
Q

To accurately map plaintext (unencrypted message) to blank and then reverse the process (decryption) requires a mathematical function that is one-to- one. Each input maps to one and only one output, and each output maps back to one and only one input.

A

ciphertext (encrypted message)

101
Q

One simple cryptosystem uses blank to encode and decode a plaintext message. Specifically, ciphertext can be expressed as c = (m + k) mod N; where m is the plaintext message, N is an integer, and k is a secret value known only to the sender and receiver. Then the decryption function can be expressed as m = (c - k) mod N. Note that the addition/subtraction inverse operations use the secret value k.

A

modular arithmetic

102
Q

The systems used in this lesson are blank. In a private key system both Bob and Alice must meet to decide upon the value of the secret key-in our example the value of k-prior to sending encrypted messages.

A

private key cryptosystems.

103
Q

n a public key cryptosystem, anyone can encrypt the message, but only the blank has the correct decryption key to ultimately read the encrypted message.

A

receiver

104
Q

In public key cryptography, Bob has an encryption key that he provides blank so that anyone can use it to send him an encrypted message. Bob holds a matching decryption key that he keeps privately to decrypt messages. While anyone can use the public key to encrypt a message, the security of the scheme depends on the fact that it is difficult to decrypt the message without having the matching blank.

A

publicly
private decryption key.

105
Q

The security of the blank rests on the assumption that it is difficult to factor large numbers. If there were an efficient algorithm to factor numbers, then messages encrypted through RSA could be decrypted by someone who does not hold the matching decryption key.

A

RSA cryptosystem

106
Q

Preparation of public and private keys in RSA

A

Bob selects two large prime numbers, p and q.
Bob computes N = pq and φ = (p-1)(q-1). [Note the symbol φ is read Phi.]
Bob finds an integer e such that gcd(e, φ) = 1.
Bob computes the multiplicative inverse of e mod φ: an integer d such that (ed mod φ) = 1.
Public (encryption) key: N and e.
Private (decryption) key: d.

107
Q

RSA encryption

A

c = m^e mod N

108
Q

To begin RSA encryption, blank are selected. The product of those numbers, N, and another value found through a GCD process, e, are the public encryption key. The private key used to decrypt the message, d, involves the multiplicative inverse process learned in the “Multiplicative Inverse and Euclidean Algorithm” lesson in this unit.

A

two very large prime values

109
Q

The RSA encryption process for a specific message involves the formula blank
where m is the integer value of the message.

A

c = m^e mod N

110
Q
A