OFFSET
0,2
COMMENTS
a(21) > 7600, if it exists. - Giovanni Resta, Jun 14 2018
EXAMPLE
a(3) = 4 because for m = 4 there are exactly three primes of the given form: 13 = 2^4 - 2^1 - 1, 11 = 2^4 - 2^2 - 1, 7 = 2^4 - 2^3 - 1 and no smaller m satisfies this requirement.
MAPLE
f:= n -> nops(select(k -> isprime(2^n-2^k-1), [$1..n-1])):
for n from 1 to 300 do
v:= f(n);
if not assigned(A[v]) then A[v]:= n fi;
od:
seq(A[m], m=0..15); # Robert Israel, Jun 13 2018
MATHEMATICA
A = <||>; Do[c = Length@Select[Range[n-1], PrimeQ[2^n - 2^# - 1] &]; If[! KeyExistsQ[A, c], A[c]=n], {n, 140}]; Array[A, 13, 0] (* Giovanni Resta, Jun 13 2018 *)
PROG
(Haskell)
import Data.List (elemIndices, elemIndex)
import Data.Maybe (fromJust)
a208091 = (+ 1) . fromJust . (`elemIndex` a208083_list)
(PARI) a(n) = {my(m=1); while(sum(k=1, m, isprime(2^m-2^k-1)) != n, m++); m; } \\ Michel Marcus, Jun 13 2018
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Reinhard Zumkeller, Feb 23 2012
EXTENSIONS
Corrected by Robert Israel, Jun 13 2018
a(17), a(19)-a(20) from Robert Israel, Jun 13 2018
a(16), a(18) from Giovanni Resta, Jun 14 2018
STATUS
approved