mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > jasong

Reply
 
Thread Tools
Old 2012-02-19, 15:33   #1
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

1101101100112 Posts
Default What's the basic LLR equation?

I'm wondering the basic LLR equation. Not the FFT stuff, but the basic math problem it's applied to.

I'm going to show it to my friends and see if can see the white all the way around their irises(wrong word?) when they realize just how big the numbers being dealt with are.

Hmmmm, just Googled it, and there might not be an actual equation. To be honest, I thought it was something like:

[2^(2^n-1)]/n then check to see if the remainder is 0.

Edit2: I meant no OBVIOUS ALGEBRAIC equation.

Last fiddled with by jasong on 2012-02-19 at 15:43
jasong is offline   Reply With Quote
Old 2012-02-19, 15:42   #2
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dartmouth NS

2×52×132 Posts
Default

Quote:
Originally Posted by jasong View Post
I'm wondering the basic LLR equation. Not the FFT stuff, but the basic math problem it's applied to.

I'm going to show it to my friends and see if can see the white all the way around their irises(wrong word?) when they realize just how big the numbers being dealt with are.
Lucas–Lehmer–Riesel test
science_man_88 is offline   Reply With Quote
Old 2012-02-19, 16:06   #3
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

Yes, science man :) that's what I Googled before I posted my edits.

Unfortunately, their eyes will probably glaze over if I try to explain it to them, I was hoping for a literal algebraic equation even though the actual numbers are unbelievably gigantic.

Actually, though... Well, with some exponents you start with 4, square it and subtract 2, square that and subtract 2, square THAT and subtract 2...I think I can explain that adequately.

Hmmmm, might still be able to do this.
jasong is offline   Reply With Quote
Old 2012-02-19, 16:32   #4
TimSorbet
Account Deleted
 
TimSorbet's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

11·389 Posts
Default

Utilizing modular arithmetic, the numbers are only ever as large as k*2^n-1 (i.e. the number you're testing). If we didn't have that benefit, hm...
(LL/LLR are practically interchangeable for this discussion; the difference that comes from different starting points is negligible) It's sequence A003010. At index 0, it's 4. By index 6, it has 37 digits. Running the LL test for M7 requires you to go to index 5. MM7 has 39 digits. So the sequence that is at the heart of the LL/LLR tests makes numbers roughly 2^N, where N is the number you're testing. For LLR tests, this means checking if a number of about the size 2^(k*2^n-1) divides k*2^n-1. For a megabit prime, this has over 10^300,000 digits (for comparison, a billion has 10 digits, and a googolplex has 10^100+1 digits). For the largest known prime, this has almost 10^13,000,000 digits. In general, for a x-digit number, the sequence would go to about 10^x digits if not for modular arithmetic. In case you didn't notice, there's nothing here special about base 10. For any base b: for an x-digit (in base b) number, the sequence would be about b^x digits.
Notice that I only say the number's approximate size. This is because getting the exact value would be most simply stated as the LL sequence formula, which is not easy to intuitively grasp the size of.

Last fiddled with by TimSorbet on 2012-02-19 at 16:49
TimSorbet is offline   Reply With Quote
Old 2012-02-20, 03:33   #5
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

Yes, Mini-Geek, I understand. The numbers we're dealing with are frickin' huge, and only modular arithmetic allows us to get an answer.
jasong is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Diophantine Equation flouran Math 7 2009-12-12 18:48
Solve this equation davar55 Puzzles 52 2007-06-26 21:41
Possible solutions to an equation: Vijay Math 6 2005-04-14 05:19
Time to prp equation jasong Math 2 2005-03-11 03:30
Cuberoot Equation koal Puzzles 3 2003-07-03 11:58

All times are UTC. The time now is 07:51.


Mon Jun 5 07:51:15 UTC 2023 up 291 days, 5:19, 0 users, load averages: 1.03, 0.93, 0.92

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔