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
votes
1 answer

Find the number of $x$ digit numbers in base $n$

I tried to understand this but I can't. It is confusing and I even don't know what the question mean. Help me out, Thanks! The number of $x$-digit numbers in base $n$ is (a) $n^x$ (b) $n^x-1$ (c) $n^x-n$ (d) $n^x-n^{x-1}$
Anuraag
  • 61
-1
votes
3 answers

How would formula change in Base 6?

How would the following formulars change if we use a base 6 arabic number system? quadratic formula (=midnight formula) Einsteins e=mc^2 pi circle A=pi*r^2 It would be counted like this: 0 1 2 3 4 5 10 11 12 13 14 15 20 21 22 23 24 25 30 31 32 33…
Squareoot
  • 183
-1
votes
1 answer

How do I find all the bases which $11^2 < 122$ is correct for them?

I tried to go all over the bases but it doesn't work well. I don't know how to present multiplying in general... I believe I somehow have to compute 11 times 11 in every base and convert it to decimal number and check if it bigger than 122. Any…
Zap Sira
  • 17
  • 2
-1
votes
3 answers

something wrong with irrational numbers

$$(5-\sqrt2)(5+\sqrt2)=5^2-\left(\sqrt2\right)^2=25-2=23$$ But as some general rule of mathematics, if a rational number is added or subtracted from or to an irrational number the result is an irrational number but in above example there's something…
-1
votes
1 answer

How to perform mutliplication of negative octal and hexadecimal numbers?

So I am supposed to do these two multiplication problems (-6*4)8 and (-7*8)16 I did it the same way I would do with positive ones and ended up with the wrong results. I tried these on a calculator and got the following results…
-2
votes
3 answers

Is writing 2K13 technically correct?

As seen in the video game title NBA 2K13, they have used 2K13. But is it technically correct? I think that 2K13 => 200013! EDIT: Sorry for the wrong reference to Roman Numerals
-2
votes
2 answers

What is the total number of bases (base 2, base 10, etc)available in our number system?

As we have different numeral bases in number system such as base 2(binary), base 10(decimal) etc. As binary (base 2) is smallest among all, is there a base value that is maximum?I was trying to search the total number of bases available in our…
mrsan22
  • 101
-3
votes
1 answer

Base Number Arithmetic

I got no idea how to solve that problem. What I have done so far is I have randomly guessed numbers. I wanted to know a faster way to solve it in the future, just in case of some even more complex cases.
Houdineo
  • 213
-4
votes
2 answers

base 13 12 11 10 HELP

Convert the last four digits 122917 number to base 13, where A, B, and C correspond to 10, 11 and 12 does anyone know how would i start this ?
-5
votes
1 answer

Why $0.999$... isn't the largest number before 1?

Why doesn't it called like that? It seems fair, $1$ called $1$ while $0.999$... being the largest number before $1$, and not called $1$ while not look like it is. Let's say it isn't, how would that number look like?
KugBuBu
  • 123
  • 6
-5
votes
1 answer

Representation of Number in hexal system

A number written as $213$ in quadral system (number system with base $4$) will be represented in hexal system (number system with base $6$) as: (A) $23$ (B) $39$ (C) $103$ (D) $303$
1 2 3
15
16