mersenneforum.org  

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

Reply
 
Thread Tools
Old 2005-05-13, 18:38   #1
Washuu
 
Mar 2005
Poland

5×7 Posts
Default correct me.

From http://primes.utm.edu/prove/prove3_2.html:

Quote:
Joerg Arndt notes that a striking (but computationally useless) way to state this test is as follows:

Theorem: p=2^n-1 is prime if and only if p divides cosh(2^(n-2)*log(2+sqrt(3))).
I tried to check this with small number. I choose p=2^7-1=127. I got my best calculator and calculated:

sqrt(3)=1,73205080756888
2+sqtr(3)=3,73205080756888
log(2+sqrt(3))=0,571947547533359
32*log(2+sqrt(3))=18,3023215210675
cosh(32*log(2+sqrt(3)))=44 418 843.4993557

hmmm... the closest integers divided by 127 are 44 418 758 and 44 418 885.

I suspected round-off errors, so I tried to change least significant digits. But the results in all cases differed only by less than 1.

Then I suspected my calculator - maybe cosh is wrong. But cosh(x)=0.5*(e^x+e^(-x)), so I tried to compute it manually. Again - the difference was less than 1.

I still were to blame my calculator, so I opened my fav computer calculator - haxial. It has configurable precision. Now the results:
sqrt(3)=1.7320508075688772935274463415058723669428052538103806280558069794519330169088000370811461867572485756
log(2+sqrt(3))=0.5719475475333593958293704723941014060530500385114407810615965498705415159250603734672350474785819945
cosh(...)=44418843.4993556859970607636979110646520900494599562953521391864831268850778303913240971799569813240522900095

Still the same.

Please, let someone points me an error (maybe in thinking? : ).
Washuu is offline   Reply With Quote
Old 2005-05-13, 18:51   #2
Washuu
 
Mar 2005
Poland

5·7 Posts
Default

Found it. A 15 minutes later. Grrrr...

There should be ln instead of log. So silly error, I couldn't hit the idea earlier...

now cosh(...) = 1002978273411373057.0000000000000000000000000\
00000000000000000000000000000000000000000000000000000000000\
0331450134408599 which is close to 127*7897466719774591.

Ufff. Math is always true.

BTW: What connection is between Mersennes and cosh(2^(n-2)*ln(2+sqrt(3))) ???
Washuu is offline   Reply With Quote
Old 2005-05-16, 22:08   #3
maxal
 
maxal's Avatar
 
Feb 2005

111111002 Posts
Default

Quote:
Originally Posted by Washuu
BTW: What connection is between Mersennes and cosh(2^(n-2)*ln(2+sqrt(3))) ???
By the definition of cosh() we have

cosh(2^(n-2)*ln(2+sqrt(3))) =
(exp(2^(n-2)*ln(2+sqrt(3))) + exp(-2^(n-2)*ln(2+sqrt(3)))) / 2 =
((2+sqrt(3))^(2^(n-2)) + (2+sqrt(3))^(-2^(n-2))) / 2 =
((2+sqrt(3))^(2^(n-2)) + (2-sqrt(3))^(2^(n-2))) / 2 =
L(n-2) / 2,

where L(n) = (2+sqrt(3))^(2^n) + (2-sqrt(3))^(2^n)
is Lucas-Lehmer sequence:
L(0) = 4
L(1) = 14
...
L(n+1) = L(n)^2 - 2

Last fiddled with by maxal on 2005-05-16 at 22:09
maxal is offline   Reply With Quote
Old 2005-05-25, 09:04   #4
Orgasmic Troll
Cranksta Rap Ayatollah
 
Orgasmic Troll's Avatar
 
Jul 2003

641 Posts
Default

where does the result L(n) = (2+sqrt(3))^(2^n) + (2-sqrt(3))^(2^n) come from?

I arrived at this independently while playing with a problem I've been working on, and I'm curious to see how others came to this result (might shed some light on what I'm working on)

Is there any literature you can point me to?
Orgasmic Troll is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
CudaLucas correct config jpalo GPU Computing 8 2017-08-06 15:35
How to manually correct CPU GHz in prime net laich2 PrimeNet 6 2012-01-16 04:51
Are these commands correct? jasong Linux 2 2007-10-18 23:40
How will a correct .n file for ggnfs look? nuggetprime Factoring 5 2007-06-02 09:31
ARE THE ODDS CORRECT..Please help lpmurray Lounge 4 2005-02-09 10:38

All times are UTC. The time now is 15:02.


Mon Aug 2 15:02:37 UTC 2021 up 10 days, 9:31, 0 users, load averages: 3.23, 3.16, 3.34

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.