Finding x = ymod(n) for x=2^71 and n=23

  • Thread starter Thread starter vikkisut88
  • Start date Start date
vikkisut88
Messages
34
Reaction score
0

Homework Statement


In this statement find the integer y such that x == y mod(n) where 0 =< y < n
x=2^71 n=23

Homework Equations


Let p be a prime number and let a be an integer which is not divisible by p. Then a^(p-1) == 1mod(p)

The Attempt at a Solution


I am really struggling as to where to start out with this as obviously 2^71 is too large a number to show fully on any normal or scientific calculator(something like 2.361... x 10^21) and so when dividing by 23 this merely gives 1.0266... x 10^20 which doesn't allow you to find a remainder.
I'm not sure if the above equation using p as a prime number is of any relevance, but this would suggest that a^22 ==1mod(23). But i don't know where to go from there, if I can use it at all.
 
Physics news on Phys.org
Okay so after reading through my notes for about the millionth time, I'm not sure if I've just worked it out. See whether you think this is right?!

As n is a prime number, 2^22 == 1 mod(23)

Hence 2^71 == 2^66.2^5
== (2^22)^3 . 2^5
== 2^5 == 32
== 9 mod(23)

So y = 9
 
Yes, of course, that's correct. Why the doubt?
 
borgwal said:
Yes, of course, that's correct. Why the doubt?

because I'm appalling at Number Theory so normally I'm wrong :-P
 
vikkisut88 said:
because I'm appalling at Number Theory so normally I'm wrong :-P

Times have changed :-)
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top