Mixed Radix — Definition, Formula & Example
Mixed radix is a way of writing numbers in which each digit position has its own base, instead of one base for every position. Clock time works this way: 60 seconds make a minute, 60 minutes make an hour, and 24 hours make a day.
Fix integer radices . A mixed-radix representation of a nonnegative integer is a digit string with for and , such that . The place values are and . Under these constraints, every nonnegative integer has exactly one such representation.
Key Formula
Where:
- = The nonnegative integer being represented
- = The digit in position , counting from at the right; it must satisfy
- = The radix (base) of position
- = The place value of position : the product of all radices to its right (an empty product equals 1)
Worked Example
Problem: Write 100,000 seconds in the mixed-radix system (days, hours, minutes, seconds), whose radices from right to left are 60, 60, and 24.
Step 1: Divide by the seconds radix, 60. The remainder is the seconds digit, and the quotient carries to the next position.
Step 2: Divide that quotient by the minutes radix, which is also 60. The remainder is the minutes digit.
Step 3: Now divide by the hours radix, 24. This radix differs from the previous one, and that is what makes the system mixed. The remainder is the hours digit, and the quotient is the days digit.
Answer: 100,000 seconds is 1 day, 3 hours, 46 minutes, 40 seconds. Check it with the formula: .
Why It Matters
In computer science, a cell's position in a multidimensional array is stored as a mixed-radix number whose radices are the array's dimensions. The factorial number system, with place values , is a mixed-radix system. It assigns each permutation a unique rank, which is used in combinatorics and in algorithms that enumerate orderings.
Common Mistakes
Mistake: Multiplying a digit by its own radix instead of by the product of all radices to its right. For example, a student gives the hours digit a place value of 24.
Correction: The place value of the hours position is , which is the product of the seconds and minutes radices. A position's own radix only limits how large its digit can be.
