OFFSET
1,6
COMMENTS
A194607 gives the record values.
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Brier Number
EXAMPLE
For n=4, 7*2^0-1 and 7*2^0+1 are composite, but 7*2^1-1=13 is prime, so a(4)=1.
MATHEMATICA
Table[p = Prime[n]; k = 0; While[! PrimeQ[p*2^k - 1] && ! PrimeQ[p*2^k + 1], k++]; k, {n, 100}] (* Arkadiusz Wesolowski, Sep 04 2011 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Arkadiusz Wesolowski, Aug 30 2011
STATUS
approved