3.1.1 · D1Boolean Algebra & Logic Gates

Foundations — Binary number system and bit - byte concepts

1,938 words9 min readBack to topic

This page is a toolbox. Before you touch the parent note, you should recognise every mark on sight. We build them in order: each tool uses only tools already unpacked above it.


1. The digit — a single mark that carries a value

The picture: think of a single dial that can click into a fixed number of notches. A decimal dial has ten notches; a binary dial has only two — think of a plain light switch.

Figure — Binary number system and bit - byte concepts

Why the topic needs it: the whole subject is about the two-notch dial. A computer can only build the two-notch kind cheaply and reliably (a switch is either open or closed), so binary is forced on us by the hardware, not chosen for beauty.


2. Base — how many notches the dial has

  • → decimal → ten digits.
  • → binary → two digits.

The picture: the subscript is like a language tag on a word. The letters "chat" mean conversation in English but cat in French — same marks, different meaning depending on the tag. for exactly this reason.

Why the topic needs it: every conversion in the parent note is "translate a number from base into base ". Without the subscript you cannot even state the problem unambiguously.


3. Position and the subscript index

Read a number left to right and the marks look equal. They are not — where a digit sits changes its worth. We need a way to name a position.

Why start counting at , not ? Because the rightmost column represents "how many ones" — and one is . Starting the index at makes the position number equal the power we will raise the base to. That alignment is the whole reason the formula in section 6 is clean.

The notation : we write to mean "the digit sitting at position ". So in :

Notice is the digit on the far right — the little subscript is an address, not a left-to-right reading order.

Figure — Binary number system and bit - byte concepts

Why the topic needs it: the parent's warning "line the weights under the bits first" is entirely about not mixing up which each digit has. Miscount the position and every later answer is wrong.


4. Exponent notation — repeated multiplication as a column weight

Why does ? Multiplying zero copies of anything must leave you at the "start" of multiplication, and the start of multiplication is (multiplying by changes nothing). So for every base. This is why the rightmost column is always worth , in any base.

The picture: picture columns as boxes of increasing size. The first box holds , the next holds , the next — each box is twice as tall as its neighbour. A digit means "this box is filled"; a digit means "empty".

Figure — Binary number system and bit - byte concepts

Why the topic needs it: is the weight of column . Every binary→decimal conversion is "add up the weights of the filled boxes". You cannot do it without knowing what a power means.


5. Multiplication as scaling, and the "" dot

The parent writes . The centred dot is just the multiplication sign (the same as ; we use the dot so it is never confused with the letter x).

Why the topic needs it: it turns a pattern (which boxes are filled) into a number (the total).


6. The summation sign — "add up all the pieces"

Now every piece is ready, we can read the parent's headline formula.

Here is just the number of digits in the string, so the last position is (because we started counting at ).


7. The words: bit, nibble, byte

Now the numbers have symbols, we name the hardware quantities.

The picture: a bit is one light switch. A nibble is a strip of switches; a byte is a strip of . "Nibble = half a byte" and the word is a pun on bite — a nibble is a small bite.

Why the topic needs it: these are the units the whole "how many values fit" discussion (section 4 of the parent) counts in. The multiplication principle giving patterns depends on knowing = number of bits.


Prerequisite map

Digit - one mark from a fixed set

Base b - how many marks

Subscript tag - which base to read in

Position index i - counted from right, starts at 0

Power b^i - the column weight

Digit times weight - fill or skip a box

Summation sigma - add all columns

Value formula V - the parent headline

Bit - one binary digit

Nibble and Byte - strips of bits

Binary number system and bit-byte concepts

This whole toolbox now flows into the parent topic. From there it powers Hexadecimal number system (grouping bits into nibbles), Two's complement (bit patterns for negatives), Logic Gates and the wider Boolean algebra chapter, and Memory addressing (why the byte is the addressable unit).


Equipment checklist

Test yourself — each line should be instant before you open the parent note.

What does the subscript in tell you?
The base to read the digits in (here base 2); it is a tag, not a power or a multiplication.
In , what does the index point to and where does counting start?
The column position, counted from the right starting at (rightmost digit is ).
Why is for every base?
Multiplying zero copies of leaves you at the start of multiplication, which is ; so the rightmost column is always worth .
What does represent in a positional number?
The weight (worth) of the column at position — for binary the weights are
What does instruct you to do?
Start at , evaluate the term, step up to , and add all the results together.
Why does stop at and not for an -digit number?
Positions start at , so digits occupy positions through .
In with binary, what are the only two possible results?
(empty box, skip it) or (full box, add its full weight).
What is a bit, and how many make a byte?
A bit is one binary digit (/); bits make a byte (and bits make a nibble).