Chapter 4: Q19E (page 244)
Find a formula for the integer with smallest absolute value that is congruent to an integer a modulo m, where m is a positive integer.
Short Answer
a-m(a/m) if a-m(a/m) \( \le \)(m/2)
a-m(a/m) – m if a-m(a/m) > (m/2)
Chapter 4: Q19E (page 244)
Find a formula for the integer with smallest absolute value that is congruent to an integer a modulo m, where m is a positive integer.
a-m(a/m) if a-m(a/m) \( \le \)(m/2)
a-m(a/m) – m if a-m(a/m) > (m/2)
All the tools & learning materials you need for study success - in one app.
Get started for freeShow that if a and b are both positive integers, then
Express in pseudocode with the algorithm described the text for finding the prime factorization of an integer.
Give a procedure for converting from the octal expansion of an integer to its hexadecimal expansion using binary notation as an intermediate step.
Determine whether each of these integers is prime.
a) 21 b) 29
c) 71 d) 97
e) 111 f) 143
Find the prime factorization of each of these integers.
a.) 88 b.) 126 c.) 729
d.) 1001 e.) 1111 f.) 909,090
What do you think about this solution?
We value your feedback to improve our textbook solutions.