find the remainder.
\(\large \begin{align} \color{black}{\dfrac{74^{211}}{511}\hspace{.33em}\\~\\}\end{align}\)
i have figured this out , if someone can post a short method than mine, i will fan and medal
\[\begin{cases} ord_{511}(74) = 3\\ 211 \equiv 1\ \text{mod } 3 \end{cases} \implies 74^{211} \equiv 74^1\ \text{mod } 3 \]
i really dont know this \(ord\) stuff
does it mean primitive root
No. ord_n(x) is the lowest number (say, m) such that x^m == 1 (mod n)
omg that works
but how did u find that
\(74^3 mod ~~511\) finding it practically by calculation is tedious
for such a large number.
Well, how did you do it? No other common methods seemed like they'd be quick, so I assumed the order was low. I assume your method involved more difficulty than 2 multiplications, or 74*74 and 74*366? This method will not work if the order is high though. There is a way to find the order quicker, I'll see if I can find it in my notes.
i applied the chineese remainder theorm which was pretty long .
you may use the fact that order is a divisor of phi(n) but i think chinese remainder thm isnt that bad here
but @INewton finded the \(\equiv 1\) quickly by \(ord\)
I was wrong, there's no really quick way to find ord (ny hand - the algorithm I knew is only really practical when programming). There is a quick way to find primitive roots by hand, but that won't help. For interest, there is another way to do this, with at most 2 * log_2(211) multiplications (but you'd find the order on the way, so in most cases it's less). It involves writing 211 in binary then using fast exponentiation by squaring. It's how a computer can work out x^(10^100) mod n in seconds, but works well for small paper calculations like this.
once you know \(74^3 \equiv 1 \pmod {511}\), rest is a piece of cake. you will be spending most of the time in finding the order tho
511 is a composite number and i think we shouldnt expect primitive roots for composites as most composites have no primitive roots
Yeah, indeed. Was just noting that because it's what I found in my notes when looking for what I thought was an order finding pen-and-paper method >:(
yeah this is a discrete logarithm problem, one of the hardest out there
\(\large \begin{align} \color{black}{\dfrac{74^{211}}{511}=ar_2x+br_1y\hspace{.33em}\\~\\ ax+by=1\hspace{.33em}\\~\\ 511=73\times 7\hspace{.33em}\\~\\ a=73 \hspace{.33em}\\~\\ b=7 \hspace{.33em}\\~\\ 73x+7y=1\hspace{.33em}\\~\\ \implies 3x (\mod~~7)=1\hspace{.33em}\\~\\ x=5,y=-52\hspace{.33em}\\~\\ \normalsize \text{so } \hspace{.33em}\\~\\ \dfrac{74^{211}}{511}=73\cdot 5r_2+7\cdot -52r_1\hspace{.33em}\\~\\ \dfrac{74^{211}}{a}=r_1 \hspace{.33em}\\~\\ =\dfrac{74^{211}}{73} \hspace{.33em}\\~\\ =1 \hspace{.33em}\\~\\ r_1=1 \hspace{.33em}\\~\\ \dfrac{74^{211}}{b}=r_2 \hspace{.33em}\\~\\ \dfrac{74^{211}}{7}\hspace{.33em}\\~\\ =\dfrac{4^{211}}{7}\hspace{.33em}\\~\\ =\dfrac{4\cdot (4^{6})^{35}}{7}\hspace{.33em}\\~\\ =4 \hspace{.33em}\\~\\ r_2=4 \hspace{.33em}\\~\\ \dfrac{74^{211}}{511}=73\cdot 5\cdot 4+7\cdot -52\cdot 1\hspace{.33em}\\~\\ =73\cdot 5\cdot 4+7\cdot -52\cdot 1\hspace{.33em}\\~\\ =1460-364 \hspace{.33em}\\~\\ =74 \hspace{.33em}\\~\\ }\end{align}\) this is my method but too long.
That method is probably more reliable though. Although if I had a question like this, with no obvious method using x^phi(n) == 1 mod(n), I'd probably just exponentiate it by squaring (i.e. calculate 74^2 mod 511, then square it to get 74^4 mod 511, ... get 74^128, then combine the 128 + 64 + 16 + 2 + 1 results. I guess it depends how quickly you can do each step of CRT as to which is faster - unless you run into the order early doing multiplications. I assume, as this is maths and not comp sci, they'd expect your method.
thats smart i should have realized that.
where did you learn this version of CRT ? it looks very interesting xD
this is not actual CRT its application of it and its very easy
it does look easy as you can use euclod gcd alogirthm for solving below\[ax + by=1\] however it will get messy when you have more than two prime factors
by the way i just realized that \(\dfrac{\phi {(511)}}{2}=216 \) and \(74^{216}\equiv 1 (mod ~~ 511)\)
i m being fooled by this question
i can give u statement of this CRT which u can learn easily
keep dividing by 2 till the exponent becomes 27
id like to see it
wait
\(\large \begin{align} \color{black}{\normalsize \text{if a number} N =a\times b \hspace{.33em}\\~\\ \normalsize \text{where a and b are prime to each other ie } \gcd(a,b)=1, \hspace{.33em}\\~\\ \normalsize \text{and M is a number such that } \hspace{.33em}\\~\\ Rem[\dfrac{M}{a}]=r_1 \hspace{.33em}\\~\\ \normalsize \text{and } \hspace{.33em}\\~\\ Rem[\dfrac{M}{b}]=r_2 \hspace{.33em}\\~\\ \normalsize \text{then } \hspace{.33em}\\~\\ Rem[\dfrac{M}{N}]=ar_2x+br_1y \hspace{.33em}\\~\\ \normalsize \text{where } \hspace{.33em}\\~\\ ax+by=1 \hspace{.33em}\\~\\ }\end{align}\)
nice nice i like how this statement avoids refering to inverses directly xD
i did'nt understand why u said " divide by 2 until u get 27"
It is made for people like me.
since we know that \(74^3 \equiv 1 \pmod {511}\), we have \[(74^3)^k \equiv 1^k \equiv 1 \pmod {511}\]
i don't think its true.
\(\huge m^{\phi {(n)}}\pmod n\equiv m^{\frac{\phi {(n)}}{2}} \pmod n\equiv 1\)
thats true only when \(m\) is NOT a primitive root
...when m is not a primitive root of n?
thats a good observation btw :) consider an example : \(m=2 \) and \(n=5\) \[\large 2^{\phi(5)}\equiv 1 \pmod{5}\] \[\large 2^{\frac{\phi(5)}{2}}\equiv ? \pmod{5}\]
yes
Also another interesting result is \(\phi(n)\) is always even for \(n\gt 3\)
-1
oh i see
i have another observation when m is a primitive root of n then \(\large m^{\phi (n)/2} \pmod n=-1\)
thats true for all \(n \ge 3\). we can also say if \(m\) is not a primitive root of \(n\) then \[\large m^{\phi (n)} \equiv m^{\phi (n)/2} \equiv 1\pmod{n} \] those observations all follow trivially from the definition of primitive root
too much observations for me
cool stuff =)
Join our real-time social learning platform and learn together with your friends!