Finding x in Modular Equations with Large Exponents

  • Thread starter Thread starter coolul007
  • Start date Start date
  • Tags Tags
    Modulus
coolul007
Gold Member
Messages
271
Reaction score
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
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:
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.
 
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:
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).
 
##\textbf{Exercise 10}:## I came across the following solution online: Questions: 1. When the author states in "that ring (not sure if he is referring to ##R## or ##R/\mathfrak{p}##, but I am guessing the later) ##x_n x_{n+1}=0## for all odd $n$ and ##x_{n+1}## is invertible, so that ##x_n=0##" 2. How does ##x_nx_{n+1}=0## implies that ##x_{n+1}## is invertible and ##x_n=0##. I mean if the quotient ring ##R/\mathfrak{p}## is an integral domain, and ##x_{n+1}## is invertible then...
The following are taken from the two sources, 1) from this online page and the book An Introduction to Module Theory by: Ibrahim Assem, Flavio U. Coelho. In the Abelian Categories chapter in the module theory text on page 157, right after presenting IV.2.21 Definition, the authors states "Image and coimage may or may not exist, but if they do, then they are unique up to isomorphism (because so are kernels and cokernels). Also in the reference url page above, the authors present two...
When decomposing a representation ##\rho## of a finite group ##G## into irreducible representations, we can find the number of times the representation contains a particular irrep ##\rho_0## through the character inner product $$ \langle \chi, \chi_0\rangle = \frac{1}{|G|} \sum_{g\in G} \chi(g) \chi_0(g)^*$$ where ##\chi## and ##\chi_0## are the characters of ##\rho## and ##\rho_0##, respectively. Since all group elements in the same conjugacy class have the same characters, this may be...

Similar threads

Back
Top