Hex number exponentiation - modulo

  • Context: High School 
  • Thread starter Thread starter Mr Peanut
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on calculating the result of the expression 0x83^11 mod 15, where 0x83 is equivalent to 131 in decimal. The final result of the calculation is confirmed to be 11, which is represented as 0x0b in hexadecimal. The discussion highlights a more efficient method for solving the problem by recognizing that 131 is congruent to 11 mod 15, allowing for simplification of the exponentiation process through modular arithmetic.

PREREQUISITES
  • Understanding of hexadecimal and decimal number systems
  • Familiarity with modular arithmetic concepts
  • Knowledge of exponentiation rules in modular contexts
  • Basic skills in mathematical simplification techniques
NEXT STEPS
  • Study modular exponentiation techniques for efficient calculations
  • Learn about the properties of congruences in number theory
  • Explore the application of Fermat's Little Theorem in modular arithmetic
  • Investigate the use of Python's built-in functions for modular arithmetic
USEFUL FOR

Mathematicians, computer scientists, students studying number theory, and anyone interested in efficient computation methods in modular arithmetic.

Mr Peanut
Messages
30
Reaction score
0
I have a hexadecimal number: 0x83

I need to determine 0x83^11 mod 15. Where the 11 and 15 are decimal.

I figured 0x83 = 131 decimal.

131^11 = 194977389846841709335931.

194977389846841709335931 mod 15 = 11

11 = 0x0b

Does that seem right?
 
Mathematics news on Phys.org
That's right, but you can get there more easily. In fact you can do it in your head.

Recognize that 131 = 11 mod 15.
So 131^2 mod 15 = 11^2 mod 15. But 11^2 = 1 mod 15.
Since 131^10 = (131^2)^5, you know that 131^10 = 1 mod 15.
Finally, 131*(131^10) = 11*1 mod 15 = 11.
 

Similar threads

  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K