Question: ( The binary number system. ) Take any nonnegative integer n , and let bkbk 1 . . . b 2 b 1 b 0
The binary number system. Take any nonnegative integer n and let bkbk bbb be the
binary digits of n
a Show that bkbk bbbbin is equal to nIn other words, sticking a on the end
of a binary string multiplies the result by
b Show that bkbk bbbin is equal to
n
In other words, removing the last digit
from a binary string is the same as dividing the result by and rounding down.
c In computer science, we call the binary operation described in a a left shift by one bit.
Similarly, we call the binary operation in b a right shift by one bit.
Suppose that n is a number with the following property: when written in binary, if n is
first shifted right and then shifted left, the result is a prime number. What could n have
been originally, and why?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
