Base-5 (Quinary) Converter
Educational tool to convert numbers between Decimal (Base-10) and Quinary (Base-5), showing the step-by-step division algorithm.
About
Quinary (Base-5) is a positional numeral system utilizing five digits: 0, 1, 2, 3, and 4. Unlike the ubiquitous Decimal (Base-10) or the machine-native Binary (Base-2), Quinary serves primarily as a pedagogical tool in number theory and historically in some linguistic counting systems (e.g., Gumatj). This tool not only performs the conversion but demonstrates the Euclidean division algorithm required to derive the result. For students, visualizing the modulus operations and remainders provides a deeper understanding of how value is assigned to position in any radix system.
Formulas
To convert from Decimal to Quinary, we repeatedly divide the integer by 5 and record the remainders:
r0 = n mod 5
The Quinary representation is the sequence of remainders read from last to first.
To convert Quinary to Decimal:
Reference Data
| Decimal (10) | Quinary (5) | Binary (2) | Power of 5 |
|---|---|---|---|
| 1 | 1 | 1 | 50 = 1 |
| 5 | 10 | 101 | 51 = 5 |
| 25 | 100 | 11001 | 52 = 25 |
| 125 | 1000 | 1111101 | 53 = 125 |
| 625 | 10000 | 1001110001 | 54 = 625 |