Focus: Place Values, Multi-Base Conversions, Base Arithmetic & Cryptographic Codes
(a) State the place value of the digit 3 in the number $2341_5$. [1 mark]
(b) Convert $342_8$ to a number in base 5, showing clear step-by-step working. [3 marks]
(a) Place value $= 5^2 = 25$
(b) Step 1: Convert $342_8$ to Base 10: $(3 \times 64) + (4 \times 8) + (2 \times 1) = 192 + 32 + 2 = 226_{10}$
Step 2: Repeated division by 5: $226 \div 5 = 45 \text{ R } 1; 45 \div 5 = 9 \text{ R } 0; 9 \div 5 = 1 \text{ R } 4; 1 \div 5 = 0 \text{ R } 1$
Calculate the following arithmetic operations in the specified base:
(a) $11011_2 + 1010_2$ in base 2. [2 marks]
(b) $725_8 - 367_8$ in base 8. [2 marks]
(a) Column addition in base 2 with carry-overs
(b) Column subtraction in base 8 with borrowing of 8
Given that $p_7 - 143_5 = 10110_2$, find the value of $p$ in base 7.
Convert to Base 10: $143_5 = 25 + 20 + 3 = 48_{10}$; $10110_2 = 16 + 4 + 2 = 22_{10}$
Convert $70_{10}$ to Base 7: $70 \div 7 = 10 \text{ R } 0; 10 \div 7 = 1 \text{ R } 3; 1 \div 7 = 0 \text{ R } 1$
In digital computing, storage addresses are encoded in binary (base 2) and octal (base 8). A network router receives a packet with size encoded as $111010110_2\text{ bytes}$.
(a) Convert $111010110_2$ to octal (base 8) directly by grouping into triplets. [3 marks]
(b) Calculate the packet size in base 10 (decimal). [3 marks]
(c) If a buffer memory can hold $1200_5\text{ bytes}$, determine whether the packet will cause a buffer overflow. [3 marks]
(a) Grouping: $(111)_2 (010)_2 (110)_2$
(b) Expansion: $(7 \times 64) + (2 \times 8) + (6 \times 1) = 448 + 16 + 6 = 470_{10}$
(c) Buffer capacity in Base 10: $1200_5 = (1 \times 125) + (2 \times 25) = 125 + 50 = 175\text{ bytes}$.
A special coin counter in a banking system tallies coins in base 5. At the end of the day, Cashier $A$ deposited $3421_5$ coins and Cashier $B$ deposited $434_5$ coins.
(a) Find the total number of coins deposited in base 5. [3 marks]
(b) If each coin is worth RM0.50, calculate the total monetary value in RM in base 10. [4 marks]
(c) State the total number of coins in base 8. [2 marks]
(a) Addition in base 5: $3421_5 + 434_5$
(b) Total coins in Base 10: $(4 \times 125) + (4 \times 25) + (1 \times 5) = 500 + 100 + 5 = 605\text{ coins}$.
(c) Convert $605_{10}$ to Base 8: $605 \div 8 = 75 \text{ R } 5; 75 \div 8 = 9 \text{ R } 3; 9 \div 8 = 1 \text{ R } 1; 1 \div 8 = 0 \text{ R } 1$