![]() |
|
|
#1 |
|
Feb 2016
7 Posts |
This thread is for Ramanujan primes and other related sequences here: http://oeis.org/wiki/Ramanujan_primes, also in the quote below describes a chain of primes different from other chains and we will talk about finding them.
For some n and k, we see that a(n) = A104272(k) as to form a chain of primes similar to a Cunningham chain. For example (and the first example), a(2) = 7, links A104272(2) = 11 = a(3), links A104272(3) = 17 = a(4), links A104272(4) = 29 = a(6), links A104272(6) = 47. Note that the links do not have to be of a form like q = 2*p+1 or q = 2*p-1. - John W. Nicholson, Dec 14 2013, https://oeis.org/A168421 So to start, what is the largest Nicholson chain? |
|
|
|
|
|
#2 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
2·5·7·13 Posts |
The wording of that paragraph is awful. I cannot figure out what is supposed to link to what.
Why did we start at a(2) rather than a(1)? Where did a(5) go? |
|
|
|
|
|
#3 |
|
"Forget I exist"
Jul 2009
Dartmouth NS
8,461 Posts |
it's a connection between two sequences where a(5) doesn't show up in the other sequence I semi get what they are saying in the OEIS comment not completely though. the point is you can get a k for almost any n and link them together in a chain and they compare it tot cunningham chains. so my understanding is they are saying hey these two sequences are linked some how.
|
|
|
|
|
|
#4 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
2·5·7·13 Posts |
I believe I get it. We start with A168421(n) then for as long as we can we do:
Code:
r = A104272(n) add r to chain k = A168421-1(r) stop if k not found n = k n = 820 yields 9 terms, as does 856. n = 9742 yields 10 terms. n = 30850 yields at least 11 terms. That's the best I could get with the first 100M Ramanujan primes. With simple methods the memory starts to be an issue. Last fiddled with by danaj on 2016-03-03 at 06:27 |
|
|
|
|
|
#5 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
16168 Posts |
Using the method above, first n with a chain of length k:
k n [primes] 2 5 [23 41] 3 4 [17 29 47] 4 3 [11 17 29 47] 5 2 [7 11 17 29 47] 6 50 [331 641 1277 2531 5051 10093] 7 40 [251 487 967 1913 3821 7621 15233] 9 820 [7681 15349 30689 61357 122693 245339 490661 981301 1962581] 10 9742 [117497 234931 469841 939649 1879279 3758537 7517033 15034049 30068081 60136117] 11 30850 [410651 821281 1642549 3285041 6570049 13140079 26280127 52560217 105120403 210240781 420481541] |
|
|
|
|
|
#6 | |
|
Feb 2016
1112 Posts |
Quote:
a(n) is A168421(n), so that A168421(2) = 7. The link here is the index, 2. A104272(2) = 11. Here the link is value, 11, A168421(3) = 11. The link here is the index, 3, A104272(3) = 17. Value: A168421(4) = 17. Index: A104272(4) = 29. Value: A168421(6) = 29. Index: A104272(6) = 47. A168421 does not have the value 47 in the sequence, so the chain ends. I am unsure of this code, if it does the same as above then great: I would say at first glance yes to the largest-longest question. But, it can also mean size from the first value to the last. |
|
|
|
|
|
|
#7 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
2·5·7·13 Posts |
My first version uses code that:
|
|
|
|
|
|
#8 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
11100011102 Posts |
As far as I can tell, the code does what you describe. It gets RP[n] (the value), then looks it up in A168421 to get the index from that sequence, which is used as the next n. Repeat until it isn't in A168421.
I wrote a modified version, that doesn't use the big arrays/hashes. The binary search could certainly be improved with better starting points. length 8 at n = 1036 (from 10037 to 1282277) length 12 at 147391 (from 2211593 to 4529290013). length 13 at 188849 (from 2882837 to 11807947427). length 14 at 673990 (from 11201987 to 91766252549). length 15 at 501244 (from 8172583 to 133899099401). |
|
|
|
|
|
#9 |
|
Feb 2016
716 Posts |
Here is another quote from https://oeis.org/A168421
Prime index of a(n), pi(a(n)) = i-n, is equal to A179196(n) - n + 1. - John W. Nicholson, Sep 15 2015 A179196 is the index of A104272. And yet another quote: A084140(n) is the smallest integer where ceiling ((A104272(n)+1)/2), a(n) is the next prime after A084140(n). - John W. Nicholson, Oct 09 2013 These may be handy. |
|
|
|
|
|
#10 |
|
Feb 2016
7 Posts |
This conjecture may be useful if you got the prime and index while trying to find the next prime.http://www.mersenneforum.org/showthread.php?t=21045
|
|
|
|
|
|
#11 | |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
16168 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ramanujan's 125 birth anniversary | garo | Lounge | 1 | 2011-12-30 23:57 |
| Ramanujan | devarajkandadai | Math | 11 | 2009-08-12 17:01 |
| God, Math and Ramanujan. | mfgoode | Lounge | 25 | 2007-09-08 13:35 |
| Mock theta functions and Ramanujan | rogue | Math | 5 | 2007-03-16 10:59 |
| Ramanujan math puzzle cracked at last | Jeff Gilchrist | Math | 1 | 2005-03-24 02:31 |