Binary and hexadecimal expansion

In summary, binary expansion is the process of representing a number in base 2, using only two digits - 0 and 1. It differs from decimal expansion, which uses a base of 10 and allows for any digit from 0 to 9. Hexadecimal expansion is representing a number in base 16 using 16 distinct symbols, and it is useful for representing large numbers and in computer programming. To convert a binary number to a hexadecimal number, the binary number is divided into groups of four digits and each group is replaced with its corresponding hexadecimal symbol.
  • #1
nicnicman
136
0

Homework Statement


Show that the binary expansion of a positive integer can be obtained form its hexadecimal expansion by translating each hexadecimal digit into a block of four binary digits.


Homework Equations





The Attempt at a Solution


I know that this is true but I have no idea how to show it. Any pointers?
 
Physics news on Phys.org
  • #2
If you have number given as ##a_n 16^n + a_{n-1} 16^{n-1} + ... + a_0##, can you express it as binary number? This expression is unique, so once you find some way to represent the number you are done.
 

Related to Binary and hexadecimal expansion

1. What is binary expansion?

Binary expansion is the process of representing a number in base 2, using only two digits - 0 and 1.

2. How is binary expansion different from decimal expansion?

Binary expansion uses a base of 2, while decimal expansion uses a base of 10. This means that binary numbers only use 0s and 1s, while decimal numbers can use any digit from 0 to 9.

3. What is hexadecimal expansion?

Hexadecimal expansion is the process of representing a number in base 16, using 16 distinct symbols - 0 to 9 and A to F.

4. Why is hexadecimal expansion useful?

Hexadecimal expansion is useful because it can represent large numbers using few digits. It is also commonly used in computer programming, as it is easier to convert between binary and hexadecimal than between binary and decimal.

5. How do you convert a binary number to a hexadecimal number?

To convert a binary number to a hexadecimal number, divide the binary number into groups of four digits and then replace each group with its corresponding hexadecimal symbol. For example, the binary number 10110010 would be divided into 1011 0010 and converted to B2 in hexadecimal.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
3K
  • Programming and Computer Science
Replies
3
Views
967
  • Calculus and Beyond Homework Help
Replies
32
Views
2K
Replies
4
Views
962
  • Calculus and Beyond Homework Help
Replies
1
Views
883
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Computing and Technology
Replies
4
Views
794
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
Back
Top