Discrete Math - Counting Theory

Click For Summary
SUMMARY

The discussion focuses on counting the number of hexadecimal numbers between the values 30 and AF. The conversion of hexadecimal 30 to decimal is 48, while AF converts to 175. The total count of hexadecimal numbers between these two values is 126, excluding the endpoints. The example provided in the book, which calculates the range between 50 and FF, demonstrates a different approach yielding 174 numbers when endpoints are excluded.

PREREQUISITES
  • Understanding of hexadecimal number system
  • Ability to convert hexadecimal to decimal
  • Familiarity with counting principles in discrete mathematics
  • Knowledge of inclusive vs. exclusive counting methods
NEXT STEPS
  • Study hexadecimal to decimal conversion techniques
  • Learn about counting principles in discrete mathematics
  • Explore examples of inclusive and exclusive counting in various contexts
  • Practice problems involving ranges of hexadecimal numbers
USEFUL FOR

This discussion is beneficial for students of discrete mathematics, educators teaching number systems, and anyone interested in understanding hexadecimal counting methods.

sjaguar13
Messages
49
Reaction score
0
Hexadecimal numbers are made using the sixteen digits 0 - 9, A-F. how many hexadecimal numbers are there between the hexadecimal numbers 30 and AF?

There are 8 numbers between 3 and A, so I got 3 x 16, but I don't really know.
 
Physics news on Phys.org
Try converting AF to a base 10 number.

How many numbers are between 30 and this number?
 
30 = 48
AF = 175

126 numbers between

However, the example in the book is 50 and FF and the solution is, 5 and F is 11 numbers away. There are 16 hexadecimal numbers, so there are 11 x 16 hexadecimal numbers.
50 = 80
FF = 255
That comes out to be 174 numbers. That's not 11 x 16.
 
sjaguar13 said:
30 = 48
AF = 175

126 numbers between

However, the example in the book is 50 and FF and the solution is, 5 and F is 11 numbers away. There are 16 hexadecimal numbers, so there are 11 x 16 hexadecimal numbers.
50 = 80
FF = 255
That comes out to be 174 numbers. That's not 11 x 16.

176 includes 50 and FF. 174 excludes 50 and FF.
128 inculdes 30 and AF. 126 excludes 30 and AF. (In your original post you said 3x16, I think you meant 8x16. Also, thanks for catching my mistake, I forgot that 30 was also a hexidecimal number.)
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
2K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
977
  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 64 ·
3
Replies
64
Views
6K
Replies
2
Views
2K