login
A182317
Least prime p = prime(k) such that prime(k+n) - prime(k) = 2^(n-1), or 0 if no such p exists.
1
2, 0, 0, 0, 7, 107, 1117, 23369, 1050457, 302728997
OFFSET
1,1
EXAMPLE
a(1) = 2 = prime(1) = prime(1+1) - 2^(1-1) = 3-1,
a(5) = 7 = prime(4) = prime(4+5) - 2^(5-1) = 23-16,
a(6) = 107 = prime(28) = prime(28+6) - 2^(6-1) = 139-32,
a(7) = 1117 = prime(187) = prime(187+7) - 2^(7-1) = 1181-64,
a(8) = 23369 = prime(2605) = prime(2605+8) - 2^(8-1) = 23497-128.
CROSSREFS
Sequence in context: A231108 A231285 A268729 * A158801 A266208 A266158
KEYWORD
nonn
AUTHOR
Gerasimov Sergey, Apr 24 2012
EXTENSIONS
a(9) and a(10) from T. D. Noe, Apr 25 2012
STATUS
approved