Binary Shift Right Operation

A right shift 1 place is the same as dividing by 2

A right shift 2 place is the same as dividing by 4

A right shift 3 place is the same as dividing by 8

In general shifting N places right is the same as dividing by 2 to the power N (written as 2N)

NOTE: A right shift 0 places is the same as dividing by 20 and since 20 is equivalent to 1 it is the same as dividing by 1

EXAMPLES

shift right 1 place

input 0 0 1 0 0 1 0 1
result 0 0 0 1 0 0 1 0

shift right 2 places

input 0 0 1 0 0 1 0 1
result 0 0 0 0 1 0 0 1

shift right 3 places

input 0 0 1 0 0 1 0 1
result 0 0 0 0 0 1 0 0