The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A098917 Least k such that k * M(n) * M(n+1) + 1 is prime where M(n) = A000668(n). 3
2, 6, 4, 16, 36, 6, 42, 24, 172, 18, 52, 54, 6, 130, 2488, 1344, 12420, 5596, 364, 178, 3382, 10516, 44328, 30342, 25770, 47146 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
2*(2^2-1)*(2^3-1) + 1 = 43 is prime, so a(1) = 2.
2*(2^3-1)*(2^5-1) + 1 = 435 is composite, 4*(2^3-1)*(2^5-1) + 1 = 867 is composite, 6*(2^3-1)*(2^5-1) + 1 = 1303 is prime, so a(2) = 6.
MATHEMATICA
f[n_] := Module[{k = 1}, While[! PrimeQ[k*n + 1], k++]; k]; f /@ Times @@@ Partition[2^MersennePrimeExponent[Range[15]] - 1, 2, 1] (* Amiram Eldar, Jul 24 2021 *)
Table[k=1; x=(2^MersennePrimeExponent[n]-1)*(2^MersennePrimeExponent[n+1]-1); Monitor[Parallelize[While[True, If[PrimeQ[k*x+1], Break[]]; k++]; k], k], {n, 1, 24}] (* J.W.L. (Jan) Eerland, Jan 01 2024 *)
CROSSREFS
Cf. A000668 (Mersenne primes).
Sequence in context: A226718 A181159 A127320 * A366688 A054786 A269372
KEYWORD
nonn,more
AUTHOR
Pierre CAMI, Oct 17 2004
EXTENSIONS
a(15)-a(23) from Amiram Eldar, Jul 24 2021
a(24)-a(25) from J.W.L. (Jan) Eerland, Jan 02 2024
a(26) from Daniel Suteu, Jan 03 2024
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 May 20 16:51 EDT 2024. Contains 372719 sequences. (Running on oeis4.)