OFFSET
1,1
EXAMPLE
2*(2^2-1)*(2^3-1) - 1 = 41 is prime, so a(1) = 2.
2*(2^3-1)*(2^5-1) - 1 = 433 is prime, so a(2) = 2.
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 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Pierre CAMI, Oct 17 2004
EXTENSIONS
a(15)-a(23) from Amiram Eldar, Jul 24 2021
STATUS
approved