OFFSET
1,1
COMMENTS
See A136003 for the values of p.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..236
FORMULA
a(n) = 2^A136003(n) - 1.
EXAMPLE
a(3) = 31 because A136003(3) = 5 and 2^5 = 32 and 32-1 = 31.
MATHEMATICA
q[n_] := PrimeQ[n] && (n == 2 || Module[{d = Divisors[(n+1)/2]}, AllTrue[Range[3, Length[d]], d[[#]] >= 2 * d[[#-1]] &]]); 2^Select[Range[100], q] - 1 (* Amiram Eldar, Oct 20 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Dec 17 2007
EXTENSIONS
a(16)-a(17) from Amiram Eldar, Oct 20 2024
STATUS
approved