Questions tagged [number-systems]

Representations of numeric values in decimal, binary, octal, hexadecimal, and other bases; one's-complement and two's-complement signed numbers; scientific notation; floating-point numbers in digital computers; history of number systems; nonstandard number systems; algorithms for arithmetic within specific number systems or for conversions between number systems.

Number systems provide systematic ways to write numeric values such as the (base-ten) numbers $289$ or $2.125$. Some questions with this tag involve algorithms for converting base-ten numbers to or from another number system; conversions between other number systems; algorithms to perform arithmetic (addition, subtraction, multiplication, etc.) within a specific number system without converting the operands to base ten; symbols for writing numbers in systems other than base ten; ancient number systems (such as Roman numerals) and the historical development of number systems; and specialized or unusual number systems.

A base-$b$ number system represents an integer as a sequence of digits, each of which is an integer such that $0 \leq d < b$. Ordinary decimal numbers are written in base ten; other well-known bases include binary (base $2$), octal (base $8$), and hexadecimal (base sixteen). Optionally, the base or radix, $b$, may be appended as a subscript. The value of such a numeric representation is

$${\left(d_m d_{m-1} \cdots d_2 d_1 d_0\right)}_b = d_m b^m + d_{m-1} b^{m-1} + \cdots + d_2 b^2 + d_1 b^1 + d_0 b^0.$$

For example, $21_{16} = 33_{10} = 41_8 = 100001_2$, representing the same value as hexadecimal, decimal, octal, and binary numbers, respectively. The factors $b^0$, $b^1$, $b^2$, and so forth are the place values of the digits. A base-$b$ number with a fractional part is written by appending a decimal point and digits with place values $b^{-1}$, $b^{-2}$, $b^{-3}$, and so forth; for example, $$101.011_2 = 1\cdot2^2 + 0\cdot2^1 + 1\cdot2^0 + 0\cdot2^{-1} + 1\cdot2^{-2} + 1\cdot2^{-3} = 4 + 1 + \frac14 + \frac18 = 5.375_{10}.$$

In a mixed-radix number system, such as the factorial number system, the ratio between the places value of two digits depends on their distances from the decimal point. A number system can have a negative radix, for example the negabinary number system, which has the radix $-2$.

Digital computing has raised interest in various other number systems. In an $n$-digit $b$'s-complement base-$b$ representation, the integer $-x$ is represented by $b^n - x$, whereas in a $(b-1)$'s complement representation, $-x$ is represented by $(b^n - 1) - x$. Computers often use two's-complement (or sometimes one's-complement) binary numbers.

Very large or small numbers can be written in scientific notation, for example $1.234 \times 10^9$. Floating-point numbers in digital computers, typically using the IEEE 754 standard, serve a similar purpose.

More esoteric number systems of interest in computer science include:

  • Balanced base-$b$ number systems, which use both positive and negative digit values. The balanced ternary (base $3$) system with digit values $\{-1,0,1\}$ is an example of this kind of number system.
  • Redundant base-$b$ systems, which allow more than $n$ values of each digit. There may be many ways to represent a given number in such a number system.
  • Residue number systems, in which each digit position is assigned a fixed modulus and the digit in that position is the remainder when the number's value is divided by that modulus.

Other possible numbering systems include the Fibonacci base system and systems using a non-integer radix such as the $\phi$ number system.

949 questions
1
vote
1 answer

Find possible bases of an operation

If I have the following operation: $$\sqrt{41}=5 $$ how can I find possible bases?I thought the problem like this: $$4a+1=5_a*5_a$$
Lola
  • 1,601
  • 1
  • 8
  • 19
1
vote
2 answers

How many numerals (unique glyphs) do we use to note a number in a non-integer base numeral system?

In integer-base positional numeral systems, the notation of a number in base $n$ uses $n$ numerals. Base 2 uses the symbols 0 and 1, base 10 uses 0123456789, base 16 uses base 10 + ABCDEF. Although the choice of symbols for the numerals is…
gerrit
  • 456
  • 1
  • 3
  • 17
1
vote
5 answers

How can we visualize that $2^n$ gives the number of ways binary digits of length n?

Like if we have to find the number of ways can be represented in bits up to 4 places. We use $2^4$, but why do we use this method?
1
vote
2 answers

Expressing $2010_{2}$

To express $2010$ in base $2$, we use exactly $8$ ones and $3$ zeros. Find the next two integers in base $2$ that use the same number of ones and zeros.
Carla
  • 29
1
vote
1 answer

Converting Base 10 numbers to an Alphabetical Number System(Similar to the excel column labelling system)

I am interested in converting a base 10 number into an Alphabetical Number System (like the one used to label columns in excel.) For example, $ 55 = BC $ in this system because $ 2*26^1 + 3*26^0 = 55 $. (The 2 and 3 shown above are because B and C…
1
vote
1 answer

Converting between number systems without using mid-conversion

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…
Koy
  • 877
  • 1
  • 6
  • 13
1
vote
2 answers

How to find the base r?

$\sqrt{144_r} = 12_r$ What is r? The method I used is: $\sqrt{ ((1 × r^2) + (4 × r^1) + (4 × r^0))} = ((1 × r^1) + (2 × r^0))$ and I tried solving this equation but I got now where. the solution to this question according to the book is $r\geq 5$.
1
vote
0 answers

Convert Periodic fraction beetween numeral systems.

I need convert 13.23(2233) (Quaternary) to Hexadecimal I should convert 13.232233 to Decimal and Decimal convert to Hex? There are quite a lot of calculations on addition of fractions.And then multiplying. Or is there another solution?
1
vote
0 answers

On partial number bases

As we know, base $12$ is far superior to base $10$, but only outdone by base $2$. $N_b$ denotes a number $N$ is base $b$. This is done by $$N_b=\sum_{n=-\infty}^\infty a_nb^n$$$$0\le a_n\le b,a_n\in\mathcal{Z}$$ But what if I said there was a more…
Jacob Claassen
  • 868
  • 1
  • 8
  • 19
1
vote
4 answers

Exchange between base 10 and base 2: is there any criteria to define when the numerical representation will be finite?

I was doing some exercises about conversion of numerical representation between base 10 and base 2. In particular, i was solving the exercise: $(3.1416)_{10} $ to base 2. I solved about sixteen interactions over the fractional part and i wasn't…
user2345678
  • 2,885
1
vote
1 answer

What is the radix of a base zero and 1 number system.

There are 2 questions: 1.What is the radix of a base zero number system? 2. What is the radix of a base 1 number system?
Tobi Alafin
  • 1,187
1
vote
4 answers

How to represent $(43.3)_7$ in base-8?

I am trying to represent $(43.3)_7$ in base-8. But in only one integer digit by truncating the rest and using the numerical unsigned representation.
1
vote
0 answers

$-0.1111\cdot5^{-11}$ from base 5 to base 10

Convert $-0.1111\cdot5^{-11}$ from base 5 to base 10. My attempt: $$-(5^{-12}+5^{-13}+5^{-14}+5^{-15})=5\cdot10^{-8}$$ But this is different from the given answer: $$-1.59744\cdot10^{-5}$$
1
vote
1 answer

Value of $x$ in a number system

Question IN AN EXAM : $(22)_4$ + $(101)_3$ – $(20)_5$ = $(x)_4$ + $(4)_{x–1}$. The value of $x$ is ___________. According to me the question is invalid, since the exam did not specify the base of the answer... reason : Unless you specify which…
Paul
  • 11
1
vote
5 answers

Find the base numeric system

Find the numeric base we are using if $ x = 4 $ and $ x = 7 $ are zeros of $ 5x^2 - 50x + 118. $ When I plug in $ x = 4 $ and $ x = 7, $ I receive $ -2 $ and $ 13, $ respectively, but how do I proceed from that?