![]() |
|
|
#1 |
|
Jun 2005
Near Beetlegeuse
22·97 Posts |
Let's say Inv(6) in Z/p* = h
In trying to calculate h for a range of p I noticed that ........ This is obviously connected to the fact that ........ So, if we start by assuming that then we get ... ........ Now, when but when Any ideas. Last fiddled with by Numbers on 2005-12-31 at 13:27 |
|
|
|
|
|
#2 |
|
Aug 2002
Buenos Aires, Argentina
2×683 Posts |
If h is the inverse of 6 modulo p=6k+r, from the definition of inverse we get:
6h - 1 = sp = s(6k + r) Operating modulo 6: 5 = sr (mod 6) So when p has the form 6k+1, the quotient is 5, and when p has the form 6k+5, the quotient is 1. Notice that 0 <= 6h - 1 < 6p so 0 <= s < 6. This means that the quotient cannot have other values that the ones shown in the previous paragraph. Last fiddled with by alpertron on 2005-12-31 at 13:47 |
|
|
|
|
|
#3 | |
|
Jun 2005
Near Beetlegeuse
1100001002 Posts |
Thank you.
If I understand you correctly, then in the line: Quote:
Thank you. |
|
|
|
|
|
|
#4 |
|
Jun 2005
Near Beetlegeuse
22·97 Posts |
I got it!
I just couldn't figure out why the algebra didn't work, and now I know. In my first post I wrote that If we replace the denominator with the rather obvious And this has to be a whole lot easier than trying to implement the Extended Euclidean Algorithm, so I'm as happy as Larry. Thanks for your help. |
|
|
|