Chapter 4: Q20E (page 244)
Evaluate these quantities.
a)−17 mod 2
b) 144 mod 7
c)−101 mod 13
d) 199 mod 19
Short Answer
- 1
- 4
- 3
- 9
Chapter 4: Q20E (page 244)
Evaluate these quantities.
a)−17 mod 2
b) 144 mod 7
c)−101 mod 13
d) 199 mod 19
All the tools & learning materials you need for study success - in one app.
Get started for free38. How is the one’s complement representation of the difference of two integers obtained from the one’s complement representations of these integers?
Give a procedure for converting from the octal expansion of an integer to its hexadecimal expansion using binary notation as an intermediate step.
Show that every positive integer can be represented uniquely as the sum of distinct powers of 2 . [Hint: Consider binary expansions of integers.]
Prove that for every positive integer, there are consecutive composite integers. [ Hint: Consider the consecutive integers starting with ].
Answer Exercise 36 for two's complement expansions.
36. If m is a positive integer less thanhow is the one's complement representation of -m obtained from the one's complement of m, when bit strings of length n are used?
What do you think about this solution?
We value your feedback to improve our textbook solutions.