Question #282376

bit is either 0 or 1: a byte is a sequence of 8 bits. Find


(a) the number of bytes that can be formed


(b) the number of bytes that begin with 11 and end with 11


(c) the number of bytes that begin with 11 and do not end with 11 and


(d) the number of bytes that begin with 11 or end with 11.

Expert's answer

(a) Select a digit from two digits (0 or 1) for the first place, a digit from two digits (0 or 1) for the second place, a digit from two digits (0 or 1) for the third place, and so forth.

The number of possible different bytes is


28=2562^8=256

(b) There are 4 vacant positions.

The number of bytes that begin with 11 and end with 11 is


24=162^4=16

(c) The number of bytes that begin with 11 is


26=642^6=64

The number of bytes that begin with 11 and end with 11 is


24=162^4=16


The number of bytes that begin with 11 and do not end with 11 is


26−24=64−16=482^6-2^4=64-16=48



(d) The number of bytes that begin with 11 is


26=642^6=64

The number of bytes that end with 11 is


26=642^6=64


The number of bytes that begin with 11 and end with 11 is


24=162^4=16


The number of bytes that begin with 11 or end with 11 is


26+26−24=64+64−16=1122^6+2^6-2^4=64+64-16=112
LATEST TUTORIALS
APPROVED BY CLIENTS