Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A129870
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A129870 Difference between the (10^n)-th and the (10^n-1)-th prime. +0
1
6, 18, 12, 6, 20, 6, 2, 4, 12, 12, 20, 12, 22, 26, 30, 6, 72, 152 (list; graph; listen)
OFFSET

1,1

COMMENT

It is interesting that the number 2 occurs deep into the sequence indicating a twin prime pair. It is reasonable to ask if this will ever occur again. Similarly, the analogous sequence A074383, "Difference between (1+10^n)-th and (10^n)-th primes" has 2 occurring shallow into the sequence. It is reasonable to ask if the number 2 will ever occur again in that sequence. The link provides an excellent algorithm, primex(n), that I developed to find the n-th prime using Gram's approximation of Riemann's approximation R(x) for Pi(x). Primex(n) will give about n/2 exact digits for prime(n). For A006988 (18), primex(18) is 44211790234127235469.62904554...This is only as good as R (x) but nevertheless is superior to the exact formulas out there from a practical stand point. If we apply the code gpx(n) = for(x=1,n,y=nextprime(primex(10^x))-nextprime (primex(10^x-1));print1(floor(y)",")), we will get the eratic concoction 2,0,8,14,22,28,26,0,72,18,22,0,0,0,0,0,32,0,80,78,60,0 as an analytical counterpart of the sequence given.

LINKS

C. Hilliard, Nth prime approx.

EXAMPLE

The (10^18)-th prime or A006988(18) = 44211790234832169331.

Using Pari, precprime(A006988(18)-1) = 44211790234832169179.

The difference is 152, the last entry in the table.

CROSSREFS

Cf. A006988, A074383.

Adjacent sequences: A129867 A129868 A129869 this_sequence A129871 A129872 A129873

Sequence in context: A077022 A074923 A078741 this_sequence A091014 A097370 A074390

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Jun 04 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 12 14:39 EDT 2008. Contains 144830 sequences.


AT&T Labs Research