Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Computers Only Know On and Off

With 8 switches you can represent 256 different things.

Every piece of data in a computer is stored as a pattern of on/off switches — bits. Eight bits (one byte) give 2⁸ = 256 possible patterns.

Powers of Two

Each additional bit doubles the possibilities. 1 bit = 2 states, 2 bits = 4, 3 bits = 8 … 8 bits = 256. That’s enough for all letters, digits, and symbols in basic text.

Patterns=2n\text{Patterns} = 2^n

n = number of bits

How many values in 16 bits?

  1. 1

    Apply formula

    216=65,5362^{16} = 65{,}536
Answer

65,536 possible values

The takeaway

Every bit doubles the possibilities. That’s why computers love powers of two.

Back to all stories