login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077019 a(n) is the smallest number for which the prime distance A051699 is equal to n. 3

%I #14 Aug 22 2019 05:32:51

%S 2,1,0,26,93,118,119,120,531,532,897,1140,1339,1340,1341,1342,1343,

%T 1344,9569,15702,15703,15704,15705,19632,19633,19634,19635,31424,

%U 31425,31426,31427,31428,31429,31430,31431,31432,31433,155958,155959,155960,155961,155962,155963,155964

%N a(n) is the smallest number for which the prime distance A051699 is equal to n.

%H David A. Corneth, <a href="/A077019/b077019.txt">Table of n, a(n) for n = 0..775</a> (using b-file from A002386)

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PrimeDistance.html">Prime Distance</a>

%o (PARI) d(n) = if(n<1, 2*(n==0), min(nextprime(n)-n, n-precprime(n))); \\ A051699

%o a(n) = my(k=0); while (d(k) != n, k++); k; \\ _Michel Marcus_, Aug 21 2019

%Y Cf. A002386, A051699.

%K nonn

%O 0,1

%A _Eric W. Weisstein_, Oct 17 2002

%E More terms from _Michel Marcus_, Aug 21 2019

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 07:41 EDT 2024. Contains 371964 sequences. (Running on oeis4.)