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.

A080083 Smallest prime p such that there is a gap of 2*prime(n) between p and previous prime.

This page as a plain text file.
%I A080083 #11 Mar 11 2025 04:42:26
%S A080083 11,29,149,127,1151,2503,1361,30631,81509,44351,34123,404671,265703,
%T A080083 156007,1101071,1098953,1349651,3117421,6958801,10343903,6034393,
%U A080083 49269739,83751287,39390167,166726561,107534789,232424029,253878617,327966319,519653597,1202442343,1649329259
%N A080083 Smallest prime p such that there is a gap of 2*prime(n) between p and previous prime.
%F A080083 A001632(A000040(n)) < a(n).
%F A080083 a(n) = A080082(n) + 2*A000040(n).
%o A080083 (PARI) list(len) = {my(v = vector(len), prv = 3, c = 0, d, i); forprime(p = 5, , d = (p - prv)/2; if(isprime(d), i = primepi(d); if(i < = len && v[i] == 0, c++; v[i] = p; if(c == len, break))); prv = p); v; } \\ _Amiram Eldar_, Mar 11 2025
%Y A080083 Cf. A000040, A001632, A080082.
%K A080083 nonn
%O A080083 1,1
%A A080083 _Reinhard Zumkeller_, Jan 26 2003
%E A080083 a(17)-a(28) from _Donovan Johnson_, May 30 2010
%E A080083 a(29)-a(32) from _Amiram Eldar_, Mar 11 2025