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!)
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
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
Sequence in context: A245121 A329730 A153339 * A343562 A033955 A327466
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 12:14 EDT 2024. Contains 371792 sequences. (Running on oeis4.)