Finding x in Modular Equations with Large Exponents

  • Thread starter coolul007
  • Start date
  • Tags
    Modulus
In summary, the Chinese Remainder Theorem does not apply to this problem as n is a number less than m. The problem remains n == ? mod(r), knowing n,m,r as being fixed.
  • #1
coolul007
Gold Member
271
8
I am wondering if there is a way to solve the following: (Chinese Remainder Theorem does not apply)

n == a mod(m)

m == b mod(r)

n == x mod(r), I need to know x, without dealing with a gigantic number(n),

I can find a and b, as I chose m to give me predictable results.

I appreciate any insight...

Sorry, for not including work so far, etc. Here is an example of what I am trying to do with manageable numbers:

5^(2)^13 = 5^8192 == 25 mod(5^13 -1), (always comes out 5^2)

5^13 - 1 == 614 mod(7927)

5^8192 == ? mod(7927) here is my dilemma. I know Power Residues will eventually crank out an answer, but my exponents are so large that it is prohibitive.
 
Last edited:
Physics news on Phys.org
  • #2
Hello,
any solution, if it exists, will be unique modulo lcm(m,r). Is that lcm too "gigantic" for your purposes?

Also, I'd try to think how many solutions are there using only the first two equations, since those already produce a value for n. (Hope this helps.)

Edit: Hmmm, more to the point: exactly what is fixed and what can be moved? It sounds like only m is taken as fixed. In that case, what is wrong with any r > m, b=m, and any n=a=x < m ?
 
Last edited:
  • #3
Dodo said:
Hello,
any solution, if it exists, will be unique modulo lcm(m,r). Is that lcm too "gigantic" for your purposes?

Also, I'd try to think how many solutions are there using only the first two equations, since those already produce a value for n. (Hope this helps.)

Edit: Hmmm, more to the point: exactly what is fixed and what can be moved? It sounds like only m is taken as fixed. In that case, what is wrong with any r > m, b=m, and any n=a=x < m ?

r is fixed to be less than m, in fact r is a number less than m, I chose m because it has predictable results on n. The problem remains n == ? mod(r), knowing n,m,r as being fixed.
 
  • #4
Ah. If I understand you correctly, your problem is just solving the last equation, not really a system of 3. Here are some ideas, but they depend on what else do you know about your numbers:

- Is Euler's theorem applicable?
- Does the base (in your example, 5) is coprime to the modulus? (Thus, has an inverse)

Where I'm going to, is that maybe your big exponentiation a^big can be reduced if you know that a^something == 1.

-- Edit:

All this not helping, there are ways of computing the exponent without too much hassle. For example, say the exponent is 11. (Could be much bigger as well.) In binary, this exponent is 11=8+2+1. So a^11 = a^8 * a^2 * a^1 . In practice, you begin with the base a, and square it on each iteration; whenever a bit in the exponent is one, you multiply that power of a into an accumulator (which began as 1). Notice that there are plenty of intermediate steps to reduce modulo m.
 
Last edited:
  • #5
My exponents are on the order of 2^9,876,543 not the real exponents, but size is right. It is always a power of 2. The base is 5. Thank you for the leads, I will investigate a^something == 1 mod(r).
 

FAQ: Finding x in Modular Equations with Large Exponents

What is modulus in mathematics?

Modulus is a mathematical operation that calculates the remainder after dividing one number by another. It is represented by the symbol "%".

How do you solve equations involving modulus?

To solve equations involving modulus, you must first isolate the modulus term on one side of the equation. Then, you can solve for the absolute value of the remaining expression. Finally, you must check the solutions to make sure they satisfy the original equation.

What are the properties of modulus?

Some properties of modulus include:

  • The result of a modulus operation is always positive or 0.
  • Modulus is distributive over addition and subtraction.
  • Modulus is not associative or commutative.

How is modulus used in real-life applications?

Modulus has many practical applications, such as calculating interest rates in finance, determining the time in different time zones, and measuring distances in navigation. It is also used in computer science for tasks like error detection and data compression.

Can modulus be used with equations containing variables?

Yes, modulus can be used with equations containing variables. In this case, the variable is typically treated as a placeholder and the modulus operation is performed on the resulting numerical expression. The resulting solution may include a range of values for the variable.

Similar threads

Replies
5
Views
2K
Replies
1
Views
1K
Replies
7
Views
2K
Replies
3
Views
1K
Replies
7
Views
2K
Replies
2
Views
1K
Replies
4
Views
3K
Back
Top