cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A062530 Smallest prime p such that there is a gap of 2^n between p and previous prime.

This page as a plain text file.
%I A062530 #17 Nov 05 2024 19:07:45
%S A062530 3,5,11,97,1847,5623,89753,3851587,1872852203,1999066711903,
%T A062530 22790428875365903,5333419265419188034369535864127397,
%U A062530 55128448018333565337014555712123010955456071077000028555991473847
%N A062530 Smallest prime p such that there is a gap of 2^n between p and previous prime.
%C A062530 The next two terms are <= 13615411331526592827872074749865096844383295034548454421 and 768784577114627305753353689789300110953010089817032096740065409732504678169114467301254783622575120297131239844 respectively. - Larry Reeves (larryr(AT)acm.org), Jun 13 2002
%H A062530 Thomas R. Nicely, <a href="https://faculty.lynchburg.edu/~nicely/gaps/gaplist.html">First occurrence prime gaps</a>. [For local copy see A000101]
%F A062530 a(n) = A000230(2^(n-1)) + 2^n = Min{p | p-prevprime(p) = 2^n}. - _Amarnath Murthy_, Feb 24 2002
%F A062530 a(n) = A151800(A062529(n)). - _Amiram Eldar_, Nov 04 2024
%e A062530 a(2) = 11 because 7 and 11 are consecutive primes with difference 4. - _Sascha Kurz_, Mar 05 2002
%o A062530 (PARI) a(n) = {q = 2; p = nextprime(q+1); gap = 2^n; while(p - q != gap, q = p; p = nextprime(p+1)); p;} \\ _Michel Marcus_, Dec 26 2013
%Y A062530 Cf. A000230, A062529, A151800.
%K A062530 nonn,hard,more
%O A062530 0,1
%A A062530 _Labos Elemer_, Jun 25 2001
%E A062530 More terms from _Sascha Kurz_, Mar 05 2002
%E A062530 Further terms from Larry Reeves (larryr(AT)acm.org), Jun 13 2002
%E A062530 Edited by _N. J. A. Sloane_ Aug 31 2009 at the suggestion of _R. J. Mathar_
%E A062530 a(11)-a(12) calculated from the data at A062529 by _Amiram Eldar_, Nov 04 2024