login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A364456 Lexicographically earliest sequence of distinct primes such that a(1)*a(2)*...*a(n-1) - a(n) is prime for n>=1 with a(1)=5. 0
5, 2, 3, 7, 11, 13, 17, 29, 23, 31, 37, 73, 41, 19, 59, 89, 83, 43, 47, 71, 79, 151, 137, 67, 181, 163, 167, 101, 103, 97, 53, 223, 61, 227, 229, 113, 109, 191, 127, 157, 389, 349, 199, 337, 463, 577, 193, 149, 991, 107, 139, 233, 131, 691, 173, 557, 307, 461, 313, 619, 353, 281, 487, 947, 641, 283, 673, 271, 433, 263 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Conjecture: This sequence contains all primes.
Conjecture: If f(n) = a(1)*a(2)*...*a(n-1) then f(n)-a(n) is the previous prime of f(n) - 1 for n > 1.
LINKS
EXAMPLE
a(4) = 7 because 7 is the least prime not already in the sequence such that 5*2*3 - 7 = 30 - 7 = 23 which is prime.
MATHEMATICA
a[1]=5; a[n_]:=a[n]=(k=2; While[MemberQ[s=Array[a, n-1], k]||!PrimeQ[Times@@s-k], k=NextPrime@k]; k); Array[a, 70]
CROSSREFS
Sequence in context: A131567 A200301 A114746 * A353617 A133746 A176319
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 9 04:17 EDT 2024. Contains 374171 sequences. (Running on oeis4.)