The math optional, made finite. Daily Practice

Number systems

At a Glance

Why This Chapter Matters

Number-system conversions appear as a guaranteed 5–15 mark gift in Section B, usually Q5(c) or Q6(b). Every question asks for the same four-skill toolkit applied to different numbers. The topic requires zero mathematical insight — only a reliable algorithm executed carefully. A student who internalises the three rules (repeated division, repeated multiplication, bit-grouping) scores full marks in under ten minutes.

Minimum Theory

The positional system. A number written in base BB uses digits 0,1,,B10, 1, \ldots, B-1. Its value is the sum of each digit times the appropriate power of BB: the digit in position kk (counting from 0 at the units place) contributes dkBkd_k\cdot B^k. For the fractional part, position k-k contributes dkBkd_{-k}\cdot B^{-k}. Bases in play: binary (B=2B=2), octal (B=8B=8), hexadecimal (B=16B=16), decimal (B=10B=10). Hex uses letters A–F for digits 10–15.

Converting an integer from decimal to base BB. Divide by BB repeatedly, recording remainders. Reading remainders from last to first (bottom-to-top) gives the base-BB digits. For a fraction, multiply by BB repeatedly and record the integer parts top-to-bottom until the fraction terminates (or to the desired precision).

Binary ↔ octal and binary ↔ hex shortcuts. Since 8=238=2^3 and 16=2416=2^4, one octal digit corresponds to exactly 3 binary digits and one hex digit to exactly 4. To convert, group bits outward from the radix point: integer part right-to-left (padding with leading zeros on the left), fractional part left-to-right (padding with trailing zeros on the right). Then replace each group with its decimal equivalent (0–7 for octal, 0–F for hex).

Conversion pathways — four bases and how to move between them

Question Archetypes

ArchetypeRecognition
base-conversionAny question asking to convert a number between decimal, binary, octal, or hexadecimal

base-conversion (7 question(s); 2016, 2018, 2019, 2021, 2022, 2024, 2025)

Convert numbers between decimal/binary/octal/hexadecimal

Recognition Cues

The question lists one or more numbers each tagged with a source base and asks for a target base. It may mix several conversion directions in one question (e.g., “(i) decimal→binary, (ii) binary→hex, (iii) hex→decimal”). Marks are typically 5 per sub-part at 15-mark totals, or a single 10-mark combined question.

Solution Template

For decimal → base BB (integer part): divide by BB repeatedly; record remainders; read bottom-to-top.

For decimal → base BB (fraction): multiply by BB repeatedly; record integer parts; read top-to-bottom.

For base BB → decimal: write each digit times its power of BB and sum.

For binary → octal: group bits in 3s from the radix point outward; pad outer ends with zeros.

For binary → hex: group bits in 4s (nibbles) from the radix point outward; pad outer ends with zeros.

For octal/hex → binary: replace each digit with its 3-bit / 4-bit binary equivalent.

Worked Example 1

2016 Paper 2, 2016-P2-Q5d (10 marks)

Convert the decimal numbers 4096, 0.4375, and 2048.0625 to binary and hexadecimal.

4096 to binary and hex. 4096=2124096 = 2^{12}, so in binary it is a 1 followed by twelve 0s: 4096=(1000000000000)2.4096 = (1\,0000\,0000\,0000)_2. Group in nibbles of 4 from the right: 0001 0000 0000 00000001\ 0000\ 0000\ 0000, giving hex digits 1,0,0,01,0,0,0: 4096=(1000000000000)2=(1000)16.\boxed{4096 = (1\,0000\,0000\,0000)_2 = (1000)_{16}.}

0.4375 to binary and hex. Repeated multiplication by 2:

stepvalueinteger carry
0.4375×20.4375\times 20.8750.8750
0.875×20.875\times 21.751.751
0.75×20.75\times 21.51.51
0.5×20.5\times 21.01.01 (terminates)

Reading carries top-to-bottom: (0.0111)2(0.0111)_2. Grouping the four binary fraction digits as one nibble 0111=70111 = 7: 0.4375=(0.0111)2=(0.7)16.\boxed{0.4375 = (0.0111)_2 = (0.7)_{16}.}

2048.0625 to binary and hex. Integer part 2048=2112048 = 2^{11}: (10000000000)2(100\,0000\,0000)_2. Fraction 0.0625=240.0625 = 2^{-4}: multiply by 2 four times to get carries 0,0,0,10,0,0,1, giving (0.0001)2(0.0001)_2. Combining: (2048.0625)=(10000000000.0001)2.(2048.0625) = (100\,0000\,0000.0001)_2. Integer part in hex: group 1000000000002=(800)161000\,0000\,0000_2 = (800)_{16}. Fraction: 00012=(1)160001_2 = (1)_{16}: 2048.0625=(10000000000.0001)2=(800.1)16.\boxed{2048.0625 = (100\,0000\,0000.0001)_2 = (800.1)_{16}.}

Worked Example 2

2018 Paper 2, 2018-P2-Q6b (15 marks)

(i) (111011.101)2(111011.101)_2 to decimal. (ii) (1000111110000.00101100)2(1000111110000.00101100)_2 to hexadecimal. (iii) (C4F2)16(C4F2)_{16} to decimal. (iv) (418)10(418)_{10} to binary.

(i) Binary → decimal (positional expansion): 132+116+18+04+12+11+112+014+118=59+0.625.1\cdot32+1\cdot16+1\cdot8+0\cdot4+1\cdot2+1\cdot1 + 1\cdot\tfrac12+0\cdot\tfrac14+1\cdot\tfrac18 = 59 + 0.625. (111011.101)2=(59.625)10.\boxed{(111011.101)_2 = (59.625)_{10}.}

(ii) Binary → hex (nibble grouping from radix point): Integer part: pad left to a multiple of 4 bits: 0001 0001 1111 00000001\ 0001\ 1111\ 0000. Read as hex: 1,1,F,0=11F01, 1, \text{F}, 0 = 11\text{F}0. Fraction: 0010 1100=2,C=2C0010\ 1100 = 2,\text{C} = 2\text{C}. (1000111110000.00101100)2=(11F0.2C)16.\boxed{(1000111110000.00101100)_2 = (11F0.2C)_{16}.}

(iii) Hex → decimal (positional expansion), with C=12C=12, F=15F=15: 12163+4162+1516+2=49152+1024+240+2=50418.12\cdot16^3+4\cdot16^2+15\cdot16+2 = 49152+1024+240+2 = \boxed{50418}.

(iv) Decimal → binary (repeated division by 2):

quotientremquotientrem
418÷2=209418\div2=209013÷2=613\div2=61
209÷2=104209\div2=10416÷2=36\div2=30
104÷2=52104\div2=5203÷2=13\div2=11
52÷2=2652\div2=2601÷2=01\div2=01
26÷2=1326\div2=130

Reading bottom-to-top: (418)10=(110100010)2\boxed{(418)_{10} = (110100010)_2}. Check: 256+128+32+2=418256+128+32+2=418 ✓.

Worked Example 3

2019 Paper 2, 2019-P2-Q6b (15 marks, selected sub-parts)

(i) 524524 to binary. (iii) 52805280 to hexadecimal. (iv) (1101.101)8(1101.101)_8 to decimal.

(i) 524524 \to binary: divide by 2 until zero; remainders read upward: 524,262,131,65,32,16,8,4,2,1,0remainders: 0,0,1,1,0,0,0,0,0,1.524, 262, 131, 65, 32, 16, 8, 4, 2, 1, 0 \quad\text{remainders: }0,0,1,1,0,0,0,0,0,1. 524=(1000001100)2.\boxed{524 = (1000001100)_2.} Check: 512+8+4=524512+8+4=524 ✓.

(iii) 52805280 \to hex: 5280÷16=330r05280\div16=330\,\text{r}\,0; 330÷16=20r10(A)330\div16=20\,\text{r}\,10(\text{A}); 20÷16=1r420\div16=1\,\text{r}\,4; 1÷16=0r11\div16=0\,\text{r}\,1. Bottom-to-top: 1,4,A,01,4,\text{A},0. 5280=(14A0)16.\boxed{5280 = (14A0)_{16}.}

(iv) (1101.101)8(1101.101)_8 \to decimal: 183+182+081+180+181+082+183=512+64+1+0.125+0.001953=577.1271\cdot8^3+1\cdot8^2+0\cdot8^1+1\cdot8^0+1\cdot8^{-1}+0\cdot8^{-2}+1\cdot8^{-3} = 512+64+1+0.125+0.001953 = \boxed{577.127\ldots}

Common Traps

Marks-Aware Writing

For a 5-mark question (typically one or two conversions): show the division table or multiplication table explicitly so the examiner can award method marks; state the final answer clearly in the target base.

For a 10-mark question: two to three conversions, each displayed in full with a check (e.g., expand back to verify). One line of verification at the end distinguishes a complete answer.

For a 15-mark question: four conversions in one question — plan before writing. Integer and fractional parts must be handled separately and reunited across the radix point. Note any non-terminating fractions and state the truncation.

Practice Set

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.