![]() |
|
|
#122 | |
|
Nov 2008
2×33×43 Posts |
Quote:
When we say that a ≡ b (mod n), what we mean is that n divides a-b exactly (or, equivalently, that a and b leave the same remainder on division by n). So, for example, 1 ≡ 11 (mod 5), because 5 divides 1-11 = -10 exactly. When n=5, indeed 2^n-1 = 31 and (n+1)/2 = 3. These are not equal, but 2^n-1 ≡ (n+1)/2 (mod n+2) is still true, because 7 divides 31-3 = 28 exactly, and 31 ≡ 3 (mod 7). The "%" operator gives the remainder you get when you divide one number by another. Note that if b = a%n, then a = kn+b for some integer k: that's what we mean by a remainder. Then a-b = kn, so a ≡ b (mod n). This is how "mod" and "%" are related. For positive integers, a ≡ b (mod n) is equivalent to a%n = b%n. (You need to be careful with negative numbers because programming languages may define a%n to have the same sign as a.) Last fiddled with by 10metreh on 2017-12-31 at 19:38 |
|
|
|
|
|
|
#123 | |
|
Aug 2006
10111011001002 Posts |
Quote:
|
|
|
|
|
|
|
#124 | |
|
Feb 2017
16510 Posts |
Quote:
No disagreement here: 31 mod 7 ≡ 3 However the logical == determinant means IS IDENTICAL. 31<>3 Consider the following: x==31 and x==31 mod 7....THEY ARE NOT THE SAME |
|
|
|
|
|
|
#125 |
|
Feb 2017
3·5·11 Posts |
Hi CRGreathouse
You seem to have no problem with gratis comments :) I know I am dumb, but please help me to understand and stop me from being a nuisance by posting the results for all to see and to analyse the outcomes. Ppl wil have a lot of faith in your results. |
|
|
|
|
|
#126 | |
|
Aug 2006
135448 Posts |
Quote:
I’ll be happy to carry out the analysis however you like, and write whatever supporting code is needed, as soon as the check clears in my bank account. Until then I recommend further study which will (in addition to enhancing your life) make it easier for you to understand the equivalence. If interested, forum members are usually more than happy to recommend resources. |
|
|
|
|
|
|
#127 | |
|
Feb 2017
16510 Posts |
Quote:
I respect that you have other tasks on the Site, it is just that I had thought that if you had done the analysis, that would have been much more authoritative. When I dream the first 100 million digit mersenne prime, I will hire your services :) Thanx for interactions and advice. |
|
|
|
|
|
|
#128 | |
|
"Forget I exist"
Jul 2009
Dartmouth NS
8,461 Posts |
Quote:
Last fiddled with by science_man_88 on 2017-12-31 at 20:47 |
|
|
|
|
|
|
#129 |
|
"Curtis"
Feb 2005
Riverside, CA
16DE16 Posts |
|
|
|
|
|
|
#130 |
|
Dec 2017
628 Posts |
I read the title on a mathematical symbols keyboard. Wait, I am not replying to the right post, am I? If so, then just ignore this.
Last fiddled with by George M on 2017-12-31 at 22:40 Reason: I wasn’t replying to the right post. |
|
|
|
|
|
#131 |
|
Feb 2017
101001012 Posts |
Hi George M
!= does mean "not equal to" in some computer code. |
|
|
|
|
|
#132 |
|
Feb 2017
2458 Posts |
Hi Everybody
I acknowledge that "my" algorithm is a "clone" of Fermat, after the answer to runs of the two algorithms by 10metreh, post #22, in the OMG, I cannot spam anymore in the forum Feedback where my question was answered!!!!!!!!!!111111 The results posted prove conclusively that "my" algorithm is a clone/copy of Fermat's. I apologise for not being to graps this earlier. Egg all over my face and many frustrated contributers. All I can do now is to provide the background work that I had used to derive "my" algorithm, if anybody might be interested. I did not use Fermat. Oh my gosh!!! |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gpuOwL: an OpenCL program for Mersenne primality testing | preda | GpuOwl | 2938 | 2023-06-30 14:04 |
| GQQ: a "deterministic" "primality" test in O(ln n)^2 | Chair Zhuang | Miscellaneous Math | 21 | 2018-03-26 22:33 |
| Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" | wildrabbitt | Miscellaneous Math | 11 | 2015-03-06 08:17 |
| "New primality proving test from Alex Petrov" | ewmayer | Math | 11 | 2007-04-23 19:07 |
| P-1 B1/B2 selection with "Test=" vs "Pfactor=" | James Heinrich | Software | 2 | 2005-03-19 21:58 |