login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A096499 Difference between prime following and prime preceding n-th repunit. 7
6, 4, 8, 20, 10, 60, 16, 4, 24, 54, 46, 46, 70, 176, 84, 12, 40, 134, 104, 104, 92, 24, 84, 270, 300, 130, 414, 90, 88, 240, 148, 198, 12, 64, 12, 300, 66, 70, 80, 102, 420, 142, 630, 140, 600, 88, 176, 312, 80, 96, 460, 132, 420, 284, 144, 408, 312, 180, 44, 300 (list; graph; refs; listen; history; text; internal format)
OFFSET

2,1

LINKS

Table of n, a(n) for n=2..61.

FORMULA

a(n) = A096497(n) - A096498(n) = A096869(n) + A096870(n).

EXAMPLE

n=2: 2nd repunit=11, 13-7=6=a[2].

MATHEMATICA

<<NumberTheory`NumberTheoryFunctions` Table[NextPrime[(10^n-1)/9]-PreviousPrime[(10^n-1)/9], {n, 2, 100}]

dpf[n_]:=Module[{ru=FromDigits[PadRight[{}, n, 1]]}, NextPrime[ru]-NextPrime[ ru, -1]]; Array[dpf, 60, 2] (* Harvey P. Dale, Sep 06 2015 *)

CROSSREFS

Cf. A068693, A002275, A096497, A096498.

Sequence in context: A199815 A155906 A284149 * A179258 A248930 A021158

Adjacent sequences:  A096496 A096497 A096498 * A096500 A096501 A096502

KEYWORD

nonn

AUTHOR

Labos Elemer, Jul 09 2004

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 25 09:48 EDT 2019. Contains 324347 sequences. (Running on oeis4.)