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

Relationship between Decimal, Hexadecimal, and Binary (Beginner)

I was studying the conversion technique between Hexadecimal and Binary where For example $4C2_{16} = 010011000010_{2}$ Can be done by substituting 4 bits for each Hexadecimal digit. Why is it so easy to achieve this conversion to binary by…
mathguy
  • 927
0
votes
1 answer

Why multiplication by numeral system base and raising to corresponding power converts any numeral system integer to decimal only

I am not very good in math so I apologize if my question is too simple and does not belong here... Why an integer in numeral system X can be converted to decimal by multiplying it's digits to X (meaning base of the numeral system) which is raised…
0
votes
1 answer

How to find radix?

$\sqrt{(144)_r} =(12)_r$ I have tried $\sqrt{r^2+4r+4} =r+2$ From this, I am unable to find the value of $r$. Can anyone help me out to solve this problem?
0
votes
0 answers

Number System with 11/5 base

I was given a question that says, "Give illustrative example(s) of number(s) in number systems with base 20, 02, 11/5. Prove that such examples are valid by translating selected numbers to decimal number system and then back to the required one." I…
0
votes
2 answers

How to format binary representation of RGB colour?

If I convert, say, #FF$1919$ to binary, I can do it in groups of three bytes like: FF: $1111$ $1111$ $19$: $0001$ $1001$ $19$: $0001$ $1001$ So can I write that #FF$1919 =$ $1111$ $1111$ $0001$ $1001$ $0001$ $1001$? Or do I have to write them as…
Ansar Al
  • 371
0
votes
2 answers

Last 4 digits using numeric systems

I have to find the last 4 digits of the number $4*(3^{50}) + 5*(4^{30})$ . The problem is part of a set of applications of numeral systems, so I thought that perhaps i could try to write it as $\,(10^0)*a + (10^1)*b + (10^3)*c$ and so on, but i…
0
votes
0 answers

What is the correct term for the columns in a number system?

In the base 10 number system you have units, tens, hundreds etc... These can be represented as columns such as: | 1000 | 100 | 10 | u | What is the correct mathematical term for these columns?
0
votes
2 answers

How to convert from base 4 to base 16?

I have the number 10011100010101 from base 4 and I need to conv in base 16. I wrote the number in pairs of 2 and tried to write it as such 0×16^0+1×16^1.. from left to right is it correct this way?
Lola
  • 1,601
  • 1
  • 8
  • 19
0
votes
1 answer

Base 9 to Base 3 Conversion w/o using base 10 or Calculator

I'd like too thank anyone who takes the time to answer this question. I recently came out of an exam and there was one question that i could not answer that i would really like to know how to do. the question was "Convert the base 9 number…
0
votes
1 answer

2's complement of a variable when variable is multiplied by some constant

P is a 16-bit signed integer. The 22's complement representation of P is $(F87B)_{16}$. The 2's complement representation of 8×P is One method is to use left shift to solve this. We use left shift 3 times to get the result. Result is…
Amar
  • 847
0
votes
2 answers

Question on type conversion in number system

How to convert $(FADE)_{16}$ to base 11 easily? Is there any shortcut method? My attempt - First I converted base 16 to base 10 then divided with 11 to get answer. But this method was complex and time consuming. First on converting in decimal I got…
Amar
  • 847
0
votes
1 answer

Determining sequence of regular numbers

I'm interested in the set of numbers that are regular in the sexagesimal (base 60) system, that is, the numbers that are expressible as $2^a3^b5^c$, where $a,b,c\in\mathbb{N}$. So the regular numbers so defined are…
Joe Knapp
  • 1,170
0
votes
1 answer

Express $27\cdot16^{11}+16^7+33\cdot16^4-16^4$ as a hexadecimal number

Question: Express $$\large27\cdot16^{11}+16^7+33\cdot16^4-16^4$$ as a hexadecimal number.
0
votes
3 answers

Numbers whose moduli are negative

There are numbers which are square roots of negative numbers and they're are those which are logarithms of negative numbers(both are complex numbers). Are there any numbers whose moduli are negative? I mean, $|x|<0$ If yes, what are they? If no,…
0
votes
1 answer

Total of ratio and the multiple

The ratio of two positive numbers is 3:4. The sum of their squares is 400. What will be the sum of the numbers? And the options are a. 28, b. 27, c. 22, d. 24. I can do the try and error but I want to know whether the sum of both numbers always be…