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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A275989 a(n) = prime(prime(n)+1) - prime(n). 1
3, 4, 8, 12, 26, 30, 44, 52, 66, 84, 100, 126, 140, 150, 176, 198, 222, 232, 270, 288, 300, 330, 350, 374, 424, 456, 466, 486, 492, 506, 592, 612, 650, 670, 714, 730, 772, 808, 830, 860, 890, 910, 972, 988, 1016, 1024, 1090, 1200, 1212, 1222, 1248, 1272, 1290, 1350, 1370, 1430, 1464 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..57.

FORMULA

a(n) = A000040(A008864(n)) - A000040(n) = A072677(n) - A000040(n).

EXAMPLE

For n=3, prime(prime(3)+1) = 13, and prime(3) = 5, therefore a(3) = 13 - 5 = 8.

MATHEMATICA

Table[Prime[Prime[n]+1] - Prime[n], {n, 1, 100}]

PROG

(PARI) a(n) = prime(prime(n)+1) - prime(n); \\ Michel Marcus, Aug 18 2016

CROSSREFS

Cf. A072677, A008864, A168152, A275990.

Sequence in context: A052952 A245121 A153339 * A033955 A049720 A078172

Adjacent sequences:  A275986 A275987 A275988 * A275990 A275991 A275992

KEYWORD

nonn

AUTHOR

Terry D. Grant, Aug 15 2016

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 April 26 04:37 EDT 2019. Contains 322469 sequences. (Running on oeis4.)