ICSOC-8.7.4 Inter-Base Number Conversions (M)

Easy

ICSOC-8.7.4.1 Integer Radix Conversion: The Successive Division Algorithm for Binary, Octal, and Hexadecimal

Integer Radix Conversion: The Successive Division Algorithm for Binary, Octal, and Hexadecimal

The conversion of an integer from the base-10 decimal system to any non-decimal target radix r (such as binary r=2, octal r=8, or hexadecimal r=16) is governed by the successive division-by-radix algorithm. In this deterministic procedure, the integer dividend is repeatedly divided by the target radix r using integer arithmetic. At each iterative stage, the operation yields an integer quotient and an integer remainder that strictly falls within the set {0, 1, …, r-1}. The quotient becomes the new dividend for the subsequent iteration, while each generated remainder is systematically recorded. This cycle repeats until the integer quotient diminishes to exactly zero, at which point the algorithmic decomposition terminates.

The positional significance of the accumulated remainders follows an inverted temporal order. The very first remainder generated corresponds to the division of the least significant unit and represents the Least Significant Digit (LSD), carrying the positional weight r^0. Successive iterations yield remainders of escalating positional weights, until the final division step produces the Last Remainder, which constitutes the Most Significant Digit (MSD) carrying the highest positional power r^k. Consequently, reading the remainders in reverse order—from bottom to top (MSD to LSD)—constructs the exact, canonical integer numeral in the target radix. When converting to hexadecimal, remainder values between 10 and 15 are transcribed into their standard alphanumeric symbols A through F.

Easy
In the successive division method used to convert a decimal integer to another base (such as binary or octal), how are the generated remainders ordered to obtain the final converted numeral?
Option B is correct. In successive division, the first division by radix r evaluates the units position (r^0), meaning the first remainder is the Least Significant Digit (LSD). As division continues, each subsequent remainder represents an increasingly higher power of r. The final division step yields the highest power, which is the Most Significant Digit (MSD). Therefore, the remainders must be read in reverse order (bottom-to-top). Option A is incorrect because reading top-to-bottom would erroneously place the LSD at the highest place-value. Options C and D are mathematically meaningless.
Medium
Convert the decimal integer 218_10 into its hexadecimal (base-16) equivalent using successive division.
Option A is correct. Performing successive division of 218 by 16: Step 1: 218 / 16 = 13 with a remainder of 10. In hexadecimal, 10 corresponds to the symbol A (this is the LSD). Step 2: 13 / 16 = 0 with a remainder of 13. In hexadecimal, 13 corresponds to the symbol D (this is the MSD). Reading remainders from last to first (MSD to LSD) gives DA_16. Option B (AD_16) is incorrect because it reads the remainders in forward order instead of reverse order. Option C has an arithmetic remainder error (evaluating 11 instead of 10). Option D mistakenly divides incorrectly.
Tricky
When a positive decimal integer N is converted to base-2, base-8, and base-16 via successive division, the conversion to base-8 terminates after exactly 3 division steps producing remainders r1 = 5, r2 = 2, and r3 = 3 (where r1 was generated in step 1). What is the hexadecimal representation of N?
Option A is correct. In successive division to base-8, the remainders are read in reverse order (r3 is MSD, r2 is middle, r1 is LSD). Thus, the octal number is 325_8. Converting 325_8 to decimal: (3 × 8^2) + (2 × 8^1) + (5 × 8^0) = (3 × 64) + 16 + 5 = 192 + 16 + 5 = 213_10. Now, converting 213_10 to hexadecimal via successive division: Step 1: 213 / 16 = 13 with remainder 5 (LSD). Step 2: 13 / 16 = 0 with remainder 13 = D (MSD). Reading bottom-to-top yields D5_16. Alternatively, using binary clustering: 325_8 = 011 010 101_2 = 1101 0101_2 -> 1101 = D, 0101 = 5 -> D5_16. Option B (ED_16) equals 237_10. Option C directly treats octal digits as hexadecimal. Option D corresponds to 421_10.
Medium

ICSOC-8.7.4.2 Fractional Radix Conversion: The Successive Multiplication Algorithm and Precision Limits

Fractional Radix Conversion: The Successive Multiplication Algorithm and Precision Limits

Converting a fractional decimal number (a value strictly between 0 and 1) to an alternate positional radix r requires the successive multiplication algorithm, which mirrors the dual operation of integer division. The fractional part is iteratively multiplied by the target radix r. Each multiplication yields a product consisting of an integer part (the carry digit) and a new fractional part. The integer portion—which must be a valid digit in the target radix {0, 1, …, r-1}—is recorded, stripped off, and preserved. The remaining fractional component is subsequently multiplied by r in the next iteration. This process proceeds until the fractional portion becomes precisely zero, or until a predefined degree of precision or recurring periodic pattern is reached.

Unlike the successive division algorithm where remainders are read in reverse, the recorded integer digits in successive multiplication are assembled in forward temporal order—from top to bottom—beginning immediately to the right of the radix point. The first generated integer carries the highest fractional weight r^-1, representing the Most Significant Fractional Digit, while subsequent iterations yield digits corresponding to r^-2, r^-3, and so on. A fundamental computational reality is that many finite, terminating decimal fractions (such as 0.1_10 or 0.2_10) produce non-terminating repeating fractional expansions in binary (e.g., 0.000110011…_2), which introduces inherent floating-point representation errors in binary-based CPU architectures.

Easy
When converting a fractional decimal number (e.g., 0.625_10) to binary using successive multiplication by 2, how are the extracted integer parts ordered?
Option A is correct. In successive multiplication, each multiplication by radix r scales the fractional part such that the highest remaining fractional power (r^-1, then r^-2, etc.) shifts into the integer position. Therefore, the first extracted integer is the Most Significant Fractional Digit and is written immediately to the right of the radix point (reading top to bottom). Option B is incorrect because bottom-to-top reading applies to integer successive division, not fractional multiplication. Options C and D are incorrect.
Medium
Convert the decimal fraction 0.8125_10 to its exact binary representation using successive multiplication.
Option A is correct. Applying successive multiplication by 2 to 0.8125: Step 1: 0.8125 × 2 = 1.625 -> extract integer 1, remainder fraction 0.625. Step 2: 0.625 × 2 = 1.25 -> extract integer 1, remainder fraction 0.25. Step 3: 0.25 × 2 = 0.5 -> extract integer 0, remainder fraction 0.5. Step 4: 0.5 × 2 = 1.0 -> extract integer 1, remainder fraction 0.0 (terminates). Reading top to bottom gives 0.1101_2. Verification: (1 × 0.5) + (1 × 0.25) + (0 × 0.125) + (1 × 0.0625) = 0.5 + 0.25 + 0.0625 = 0.8125. Option B (0.1011_2) equals 0.6875_10. Option C (0.1110_2) equals 0.875_10. Option D (0.0111_2) equals 0.4375_10.
Tricky
Why does the exact decimal value 0.2_10 cause precision issues and round-off errors in binary floating-point computer systems?
Option B is correct. A reduced fraction p/q terminates in base r if and only if all prime factors of q divide r. In decimal, 0.2 = 1/5, whose denominator prime factor is 5. Because 5 does not divide 2, 0.2_10 cannot terminate in binary. Successive multiplication yields: 0.2×2=0.4 (0); 0.4×2=0.8 (0); 0.8×2=1.6 (1); 0.6×2=1.2 (1); 0.2×2=0.4 (cycle repeats). This produces the infinite repeating binary fraction 0.00110011…_2. Hardware registers must truncate this infinite sequence, causing round-off errors. Option A is incorrect because 0.2 is rational (1/5). Options C and D are factually false.
Easy

ICSOC-8.7.4.3 Positional Polynomial Expansion: Converting Binary, Octal, and Hexadecimal to Decimal

Positional Polynomial Expansion: Converting Binary, Octal, and Hexadecimal to Decimal

The conversion of any positional numeral from an arbitrary source base r into its standard base-10 decimal equivalent is achieved through positional polynomial expansion. Positional notation represents numbers as weighted polynomial sums where each digit d_i is multiplied by its base raised to the power of its positional index: V = sum(d_i * r^i). For the integral component to the left of the radix point, positional weights scale positively as r^0, r^1, r^2, continuing up to r^(n-1). For the fractional component situated to the right of the radix point, negative integer exponents dictate diminishing weights: r^-1, r^-2, r^-3, and further. Summing these individual term products evaluates the quantitative decimal magnitude directly.

In algorithmic practice, polynomial expansion applies uniformly whether the base is binary (powers of 2: 1, 2, 4, 8, 16…), octal (powers of 8: 1, 8, 64, 512…), or hexadecimal (powers of 16: 1, 16, 256, 4096…). When converting hexadecimal expressions, alphanumeric characters are first substituted with their cardinal integer equivalents (A=10, B=11, C=12, D=13, E=14, F=15) before performing multiplication. For high-speed computational implementations, Horner’s nested polynomial evaluation scheme—iteratively computing ((…((d_k * r + d_(k-1)) * r + d_(k-2))…) * r + d_0)—minimizes multiplication steps and eliminates redundant exponent calculations, accelerating manual and programmatic conversions alike.

Easy
What is the decimal value of the binary number 11011_2 calculated using positional polynomial expansion?
Option A is correct. Using polynomial expansion with powers of 2: (1 × 2^4) + (1 × 2^3) + (0 × 2^2) + (1 × 2^1) + (1 × 2^0) = 16 + 8 + 0 + 2 + 1 = 27_10. Option B (25) omits the 2^1 term. Option C (29) erroneously adds 4. Option D (23) omits the 2^2 and alters weights.
Medium
Convert the hexadecimal number 3F.8_16 to its equivalent decimal value using expansion series.
Option A is correct. Expanding 3F.8_16 in powers of 16: Integer portion: (3 × 16^1) + (F × 16^0) = (3 × 16) + (15 × 1) = 48 + 15 = 63. Fractional portion: 8 × 16^-1 = 8 / 16 = 0.5. Combining both parts: 63 + 0.5 = 63.5_10. Option B mistakenly treats the fractional part as decimal .8 instead of 8/16. Option C calculates 3×16 = 48 and adds 3. Option D misinterprets the hex symbols.
Tricky
An Olympiad student evaluates the polynomial expression N = 5 × 8^2 + 7 × 8^1 + 4 × 8^0 + 2 × 8^-1 + 4 × 8^-2. What is the value of N in decimal, and what is its representation in octal?
Option A is correct. The given expression is the exact positional polynomial expansion of the octal number 574.24_8. Evaluating each term in decimal: (5 × 64) + (7 × 8) + (4 × 1) + (2 / 8) + (4 / 64) = 320 + 56 + 4 + 0.25 + 0.0625 = 380 + 0.3125 = 380.3125_10. The digits correspond directly to the coefficients of powers of 8: 574.24_8. Option B omits the 4 × 8^-2 term. Option C contains an addition error in the integer part (320+56+4=380, not 376). Option D reverses the integer octal digits.
Medium

ICSOC-8.7.4.4 Fast-Track Binary-Octal Conversions: Direct 3-Bit Grouping and Splitting Techniques

Fast-Track Binary-Octal Conversions: Direct 3-Bit Grouping and Splitting Techniques

Fast-track conversion between binary and octal bypasses intermediate decimal calculations by leveraging the fundamental logarithmic relationship 8 = 2^3. Because each octal digit encapsulates exactly three binary bits (a triad), binary-to-octal and octal-to-binary conversions can be executed via direct substitution. To convert an arbitrary binary string to octal, bits are partitioned into contiguous clusters of three starting from the radix point and moving symmetrically outward: leftward toward higher-order bits for the integer portion, and rightward toward lower-order bits for the fractional portion. Each 3-bit cluster is then evaluated independently as an integer between 0 and 7 according to the fixed positional weights (4, 2, 1).

A critical algorithmic step during 3-bit clustering is boundary padding. If the outermost integer group contains fewer than three bits, leading zeros must be prepended to the far left without altering the value. Crucially, if the outermost fractional group contains fewer than three bits, trailing zeros must be appended to the far right; omitting fractional trailing zeros alters the positional alignment and produces severe evaluation errors. Conversely, converting from octal to binary simply requires expanding each octal digit into its exact 3-bit binary equivalent, ensuring that leading zeros within each 3-bit triad (such as 3_8 -> 011_2 or 1_8 -> 001_2) are strictly preserved.

Easy
Why can binary numbers be converted directly to octal numbers simply by grouping bits into sets of three?
Option A is correct. The mathematical foundation of fast-track conversion is that 8 = 2^3. A 3-bit binary pattern has 2^3 = 8 possible combinations (from 000_2 = 0_8 to 111_2 = 7_8), providing a direct one-to-one mapping between each 3-bit group and a single octal digit. Option B is an irrelevant arithmetic statement. Option C is false because octal numbers can have any number of digits. Option D is technically incorrect.
Medium
Convert the binary string 10101111001_2 into octal using the 3-bit clustering method.
Option A is correct. Starting from the rightmost bit (least significant bit) and clustering into groups of 3: 10 101 111 001. The leftmost group has only 2 bits, so we pad it with a leading zero on the left: (010) (101) (111) (001). Translating each 3-bit group to octal: 010_2 = 2; 101_2 = 5; 111_2 = 7; 001_2 = 1. Concatenating yields 2571_8. Option B (5371_8) results from grouping from left to right instead of right to left. Option C has a translation error in the second cluster. Option D misinterprets the leading bits.
Tricky
Convert the fractional binary number 1101.1011_2 into octal. What are the correct zero-padding steps, and what is the resulting octal value?
Option B is correct. For the integer part (1101), cluster leftward from the binary point: (101) and (1). The leftmost group (1) has only one bit, so pad two leading zeros to form (001), giving (001)(101) = 15_8. For the fractional part (.1011), cluster rightward from the binary point: (.101) and (1). The rightmost group (1) requires two trailing zeros on the right to complete the 3-bit cluster: (100). Thus, (.101)(100) = .54_8. Combining both gives 15.54_8. Option A pads incorrectly with only one zero. Option C incorrectly pads leading zeros on the fraction, shifting bit weights and giving .001 011 = .13_8. Option D has arithmetic miscalculations.
Medium

ICSOC-8.7.4.5 Fast-Track Binary-Hexadecimal Conversions: Direct 4-Bit Nibble Grouping and Synthesis

Fast-Track Binary-Hexadecimal Conversions: Direct 4-Bit Nibble Grouping and Synthesis

Fast-track conversion between binary and hexadecimal exploits the exact power relationship 16 = 2^4, which establishes that every hexadecimal character corresponds to a 4-bit binary sequence known as a nibble. This allows instantaneous transcoding between base-2 and base-16 without arithmetic calculation or radix division. To convert binary to hexadecimal, the bit stream is grouped into 4-bit nibbles radiating outward from the radix point: progressing leftward for the integer component and rightward for the fractional component. Each 4-bit block is evaluated using standard binary-coded decimal weights (8, 4, 2, 1), yielding a value from 0 to 15, which is then transcribed as a hexadecimal numeral {0-9, A-F}.

As with octal clustering, zero-padding rules must be observed at the boundaries. If the most significant integer nibble has fewer than four bits, leading zeros are padded on the left. In the fractional component, incomplete groups must be padded with trailing zeros on the right to avoid bit shifts that corrupt fractional evaluation (for instance, a trailing .101_2 must be padded to .1010_2 = A_16, rather than misread as 5_16). In reverse conversion from hexadecimal to binary, every hex digit is independently expanded into a complete 4-bit nibble. Maintaining internal leading zeros within nibbles (such as 2_16 -> 0010_2 or 0_16 -> 0000_2) is vital to preserve absolute bit positions in memory addresses and word boundaries.

Easy
In fast-track binary-to-hexadecimal conversion, each hexadecimal digit corresponds to how many binary bits (a nibble)?
Option A is correct. Because 16 = 2^4, exactly 4 binary bits (termed a ‘nibble’) represent the sixteen possible hexadecimal states from 0000_2 (0_16) to 1111_2 (F_16). Option B (3 bits) corresponds to octal (2^3 = 8). Option C (8 bits) represents a full byte (2 hex digits). Option D (16 bits) is a word.
Medium
Convert the binary string 1110110010100111_2 into its hexadecimal equivalent.
Option A is correct. Grouping into 4-bit nibbles from right to left: (1110) (1100) (1010) (0111). Evaluating each 4-bit nibble: 1110_2 = 8+4+2+0 = 14 = E; 1100_2 = 8+4+0+0 = 12 = C; 1010_2 = 8+0+2+0 = 10 = A; 0111_2 = 0+4+2+1 = 7. Concatenating from MSD to LSD gives ECA7_16. Option B miscalculates 1110 as D (13) and 1100 as 7. Option C reverses the nibble order. Option D miscalculates 1100 as B (11).
Tricky
A student converts the fractional binary number 0.011_2 to hexadecimal and writes 0.3_16. Is this conversion correct, and why?
Option A is correct. When converting fractional binary strings to hexadecimal, 4-bit nibbles must be formed moving rightward from the binary point. The fractional sequence .011 has only 3 bits, so a trailing zero must be appended to the right: .0110_2. Evaluating .0110_2 in 4-bit hexadecimal gives (0×8 + 1×4 + 1×2 + 0×1) = 6, yielding 0.6_16. The student mistakenly treated .011 as integer 011 (value 3) or padded a leading zero on the left (.0011 = 3/16 = 0.1875), whereas the true value of 0.011_2 is 1/4 + 1/8 = 3/8 = 0.375_10, which matches 6/16 = 0.6_16! Option B is wrong because place value requires trailing zero padding. Option C incorrectly advocates adding leading zeros after the radix point, which corrupts the numerical value. Option D is false.
Tricky

ICSOC-8.7.4.6 Indirect Inter-Base Conversions: Octal to Hexadecimal Routing via Intermediate Binary Chains

Indirect Inter-Base Conversions: Octal to Hexadecimal Routing via Intermediate Binary Chains

Direct mathematical conversion between octal (base-8) and hexadecimal (base-16) is computationally awkward because 16 is not an integer power of 8 (8^k != 16 for any integer k). Consequently, digits cannot be converted via simple one-to-one or one-to-few clustering without arithmetic restructuring. To perform conversion between these non-harmonious bases accurately and rapidly, computer scientists employ an indirect conversion strategy using binary as a universal intermediary transit bus. Rather than routing through base-10 decimal—which demands cumbersome successive divisions and positional polynomial multiplications—binary provides a completely division-free, fast-track translation pipeline.

The conversion pipeline from octal to hexadecimal proceeds in three deterministic stages: First, each octal digit is expanded into its distinct 3-bit binary triad (e.g., 5_8 -> 101_2, 7_8 -> 111_2). Second, all resulting triads are concatenated into a single unbroken binary bit stream around the radix point. Third, the unified bit stream is regrouped into 4-bit nibbles, radiating leftward for integer components and rightward for fractional components, applying zero-padding to incomplete outer nibbles. Finally, each 4-bit nibble is translated into its corresponding hexadecimal character. The reverse transformation from hexadecimal to octal executes symmetrically: expanding 4-bit nibbles into binary, concatenating, regrouping into 3-bit triads, and translating to octal.

Easy
Why is binary universally utilized as an intermediary bridge when converting between octal and hexadecimal?
Option A is correct. Because 8 = 2^3 and 16 = 2^4, both bases share a common base of 2. An octal digit expands into 3 binary bits, and regrouping those bits into 4-bit sets produces hexadecimal digits. This intermediate binary chain avoids computationally intensive divisions and multiplications required by routing through decimal. Option B is false since octal converts to decimal easily. Option C is absurd since hexadecimal represents all values. Option D is false (8 symbols vs 16 symbols).
Medium
Convert the octal number 735_8 into hexadecimal using an intermediate binary chain.
Option A is correct. Step 1: Expand each octal digit into its 3-bit binary triad: 7 -> 111, 3 -> 011, 5 -> 101. Step 2: Concatenate the triads into a continuous binary string: 111 011 101_2. Step 3: Regroup the binary string into 4-bit nibbles from right to left: 1 1101 1101 -> pad three leading zeros on the left: (0001) (1101) (1101). Step 4: Translate each nibble into hexadecimal: 0001_2 = 1; 1101_2 = 8+4+0+1 = 13 = D; 1101_2 = 13 = D. The resulting hexadecimal number is 1DD_16. Verification: 735_8 = (7×64) + (3×8) + 5 = 448 + 24 + 5 = 477_10. In hex: 1DD_16 = (1×256) + (13×16) + 13 = 256 + 208 + 13 = 477_10. Option B (3CD_16) equals 973_10. Option C (1ED_16) equals 493_10. Option D leaves the numerals unchanged.
Tricky
Convert the hexadecimal number B5.C_16 to its equivalent octal representation using an intermediate binary sequence.
Option A is correct. Step 1: Expand each hexadecimal digit into its 4-bit binary nibble: B = 1011_2; 5 = 0101_2; C = 1100_2. The combined binary string is 10110101.1100_2. Step 2: Regroup into 3-bit triads for octal: For the integer part (10110101), group right-to-left: (101) (110) (10) -> pad one leading zero on the left to get (010) (110) (101). For the fractional part (.1100), group left-to-right: (.110) (0) -> pad two trailing zeros on the right to get (.110) (000) or simply (.110) since trailing zeroes drop. Step 3: Translate triads to octal: 010_2 = 2; 110_2 = 6; 101_2 = 5; radix point; 110_2 = 6. This produces 265.6_8. Verification: B5.C_16 = (11×16) + 5 + (12/16) = 176 + 5 + 0.75 = 181.75_10. In octal: 265.6_8 = (2×64) + (6×8) + 5 + (6/8) = 128 + 48 + 5 + 0.75 = 181.75_10. Matches perfectly. Option B groups nibbles in reverse. Option C mistakenly translates .110_2 as 3 (evaluating as 011). Option D miscalculates the integer triads.