Understand positional notation from base 2 to base 36
A number base (or radix) is the number of unique digits a positional numeral system uses. In everyday life we use base 10 — ten digits: 0 through 9.
The key insight is positional value: each position in a number represents a power of the base. Position 0 (rightmost) = base⁰ = 1. Position 1 = base¹. Position 2 = base². And so on.
In base 10, the number 347 means: (3 × 100) + (4 × 10) + (7 × 1) = 347
In base 2, the number 1011 means: (1 × 8) + (0 × 4) + (1 × 2) + (1 × 1) = 11
To convert a decimal number to another base, repeatedly divide by the base and collect remainders from bottom to top.
Let's convert 45 to base 3:
Different bases are used in computing and mathematics for different reasons:
When a base exceeds 10, we need more than 10 symbols. Convention uses letters A–Z after the digits 0–9:
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15, …, Z = 35
So in hexadecimal (base 16), the number FF = (15 × 16) + 15 = 255. That's why web color #FF0000 is pure red at full intensity.
In base 36 (the maximum here), every alphanumeric character is a unique digit — useful for compact URL shorteners and unique IDs.