mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2014-09-11, 11:59   #1
kurtulmehtap
 
Sep 2009

1001002 Posts
Default elementary question

In the article http://library.uwinnipeg.ca/people/d...e_numbers.html
the congruence (4) states
c ≡ q^2 − 2 (mod 256) (p > 8) where c*q^2≡2^q-1

and in the next paragraph it is stated that the congruence (4) is solved by
c ≡ ±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256)

Can someone explain how we did obtain
±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256)?

Last fiddled with by kurtulmehtap on 2014-09-11 at 12:20
kurtulmehtap is offline   Reply With Quote
Old 2014-09-11, 22:38   #2
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

746010 Posts
Default

Quote:
Originally Posted by kurtulmehtap View Post
In the article http://library.uwinnipeg.ca/people/d...e_numbers.html
the congruence (4) states
c ≡ q^2 − 2 (mod 256) (p > 8) where c*q^2≡2^q-1

and in the next paragraph it is stated that the congruence (4) is solved by
c ≡ ±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256)

Can someone explain how we did obtain
±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256)?
Perhaps we have a copying error here?
16^-1 does not exist mod 256........


Is 16*32 supposed to be (16*32)?? It's inverse doesn't exist
either..
R.D. Silverman is offline   Reply With Quote
Old 2014-09-11, 23:03   #3
TheMawn
 
TheMawn's Avatar
 
May 2013
East. Always East.

6BF16 Posts
Default

In the article, what is the meaning of the three vertical bars?

I.e. (A − 1) ||| (B + 1)
TheMawn is offline   Reply With Quote
Old 2014-09-11, 23:28   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

Quote:
Originally Posted by kurtulmehtap View Post
...the congruence (4) is solved by
c ≡ ±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256)

Can someone explain how we did obtain
±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256)?
It is c ≡ ±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256).

Note that (−1)(q^2−1)/8 = legendre(2|q). Hmmm...
Well, we only have q ≡ ±1 (mod 8), so (2|q) = 1 and sqrt of it could be ±1.

Last fiddled with by Batalov on 2014-09-11 at 23:37
Batalov is offline   Reply With Quote
Old 2014-09-11, 23:29   #5
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36·13 Posts
Default

Quote:
Originally Posted by TheMawn View Post
In the article, what is the meaning of the three vertical bars?

I.e. (A − 1) ||| (B + 1)
Read the article?
This is defined in the first lemma.
Batalov is offline   Reply With Quote
Old 2014-09-12, 10:44   #6
kurtulmehtap
 
Sep 2009

22×32 Posts
Default

Quote:
Originally Posted by Batalov View Post
It is c ≡ ±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256).

Note that (−1)(q^2−1)/8 = legendre(2|q). Hmmm...
Well, we only have q ≡ ±1 (mod 8), so (2|q) = 1 and sqrt of it could be ±1.
Thanks,
I got to the step where
(−1)(q^2−1)/8 = legendre(2|q).
but still can not figure out where c ≡ ±2q −(−1)(q^2−1)/16∙32 + 29 (mod 256). comes from.
kurtulmehtap is offline   Reply With Quote
Old 2014-09-12, 17:07   #7
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

224058 Posts
Default

It is possible that the author simply mixed and matched this with a value table (which is easy). It can be probably written in other ways. It is a shorthand to replace an ugly table.

Similarly, some people write that e.g. Gaussian-Mersenne numbers are (with m=(p+1)/2)):
2^p − 2^m +1 when p ≡ ±1 (mod 8) and 2^p + 2^m +1 for other odd p,
and some roll this into one formula
2^p −(−1)(p^2−1)/8 ∙ 2^m +1
and some use
2^p − cos(p*Pi/4)*2^(1+p/2) + 1
It's hard to say which one is more elegant.
Batalov is offline   Reply With Quote
Old 2014-09-12, 17:51   #8
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by Batalov View Post
It's hard to say which one is more elegant.
It's easy to say which is least elegant. cos has no place in these sorts of equations, that's needless abuse of transcendentals.

Last fiddled with by CRGreathouse on 2014-09-12 at 17:52
CRGreathouse is offline   Reply With Quote
Old 2014-09-12, 19:37   #9
kurtulmehtap
 
Sep 2009

22·32 Posts
Default

Quote:
Originally Posted by Batalov View Post
It is possible that the author simply mixed and matched this with a value table (which is easy). It can be probably written in other ways. It is a shorthand to replace an ugly table.

Similarly, some people write that e.g. Gaussian-Mersenne numbers are (with m=(p+1)/2)):
2^p − 2^m +1 when p ≡ ±1 (mod 8) and 2^p + 2^m +1 for other odd p,
and some roll this into one formula
2^p −(−1)(p^2−1)/8 ∙ 2^m +1
and some use
2^p − cos(p*Pi/4)*2^(1+p/2) + 1
It's hard to say which one is more elegant.
Thanks for your help...
kurtulmehtap is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Elementary Literature on probabilistic aspects of prime searching hhh Math 7 2014-03-18 14:37
Elementary Question on Dirichlet L-functions intrigued Math 1 2011-02-23 22:15
Free Book - Elementary Number Theory AntonVrba Math 2 2010-08-15 20:24
Looking for an elementary demonstration Kees Math 3 2008-11-08 09:34
Elementary number quiz. mfgoode Puzzles 20 2005-06-13 17:53

All times are UTC. The time now is 18:27.


Fri Jul 16 18:27:09 UTC 2021 up 49 days, 16:14, 1 user, load averages: 2.77, 2.61, 2.36

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.