Unit 2 Flashcards
the branch of mathematics concerned with the study of integers.
number theory,
In blank, the input and output values must always be integers.
integer division
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.
divides
In most situations, the number in front of the variable, or the blank, can be any real number
coefficient
A lank of two numbers is the sum of multiples of those numbers.
linear combination
A statement about blank uses variables to denote the integer coefficients. For example, sx + ty is a linear combination of x and y.
a generic linear combination
Let x, y, and z be integers. If x|y and x|z, then blank for any integers s and t.
x|(sy + tz)
Blank, states that the result of the division (the quotient) and the remainder are unique.
Division Algorithm
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
n = qd + r.
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
Division Algorithm
The blank is the result of the division of two integers. The quotient and the remainder are unique.
Division Algorithm
The Division Algorithm works with blank; if any of the inputs is negative, the quotient will be negative per the rules of division.
positive integers only
The operations div and mod produce the quotient (q) and the remainder (r). The blank is d.
divisor
The blank is computed by n div d; q = n div d
quotient
The blank is computed by n mod d; r = n mod d
remainder
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.
modular division
The operation defined by adding two numbers and applying modulo n to the result is called blank.
addition modulo n
The operation defined by multiplying two numbers and applying modulo n to the result is called blank.
multiplication modulo n
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.
modular addition
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.
modular multiplication
The blank is completed as the last step in the process.
modular operation
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).
congruent to y modulo n
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.
n|(x - y)
Two integers x and y are blank if and only if x mod n = y mod n.
equivalent