I've searched a lot about this but I couldn't find any thread. Is there any tutorial, course or whatever that explains how to convert from any number system to some other number system (for example ternary to binary or base-7 to base-15 or any combination)? The reason I'm asking is because on the test that I have coming up, you can be asked to convert from any number system to another WITHOUT converting to decimal system in between. So, is there a universal algorithm or a few algorithms universal for specific cases? Or is there a different algorithm for every single combination? I already know how to convert some of the most used systems, for example binary to hex or hex to octal or octal to binary etc; but things that confuse me are those examples that I've given which use ternary or base-4 or anything else. In addition to this, I've tried searching for specific cases but all I get are algorithms with mid-conversion to decimal, and I can't use that. So, does anyone have any resource they might share? Thanks in advance.
2026-03-29 03:02:30.1774753350
Converting between number systems without using mid-conversion
479 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMBER-SYSTEMS
- Why do we can't replace binary numbers with decimal like we do in hexadecimal and octal?
- How many numerals (unique glyphs) do we use to note a number in a non-integer base numeral system?
- How to convert from base 4 to base 16?
- Find possible bases of an operation
- What is the logic behind the octal to decimal conversion using the expansion method?
- Why the hexadecimal numbers can be converted directly into binary numbers so cleanly?
- Base 17 on a Suanpan (Chinese abacus)
- How to Prove Square Number?
- Multiplication of two number in 2's complement
- We know that $2^0$=1 but why $(-2)^0$=not 1
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
There are two basic methods to find the radix expansion of a positive integer. In the first method you need to repeatedly divide by the target radix keeping track of the remainders as digits. In the second method you assume that you have a representation of it in a source radix and you repeatedly multiply by the source radix and add digits while doing the arithmetic in the target radix.
An example may help make this clear. Suppose $A=13$ and we want the binary expansion. We repeatedly divide by $2$ and use the remainders to build up the binary expansion giving $A=1101_2.$ Now suppose we want the ternary expansion of this using base $3$ arithmetic. We build up the number using the source radix $2$ which is the reverse of the process which got the expansion.
$$A_0 = 0,\; A_1=2\cdot A_0+1,\ A_2=2\cdot A_1+1,\ A_3=2\cdot A_2+0,\ A_4=2\cdot A_3+1=13.$$
Doing the same arithmetic in base 3 the computation is
$$A_0\! =\! 0_3,A_1\!=\!2\!\cdot\! 0_3\!+\!1\!=\!1_3, A_2\!=\!2\!\cdot\!1_3\!+\!1=10_3,A_3=2\!\cdot\!10_3\!+\!0=20_3,A_4=2\!\cdot\! 20_3\!+\!1=111_3.$$
which gives the correct answer as it should.
There are other variations on the first method which are more general in that they work for more general number representation systems, but I don't want to confuse you with the details of them.