OFFSET
1,1
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..36
Thomas R. Nicely, First occurrence prime gaps [For local copy see A000101]
FORMULA
a(n) = A000230(n*(n+1)/2). - Jens Kruse Andersen, Oct 01 2014
EXAMPLE
a(3) = 199 because 199 and 211 are consecutive primes with difference 3*4=12.
PROG
(Python)
import sympy
n = 1
while n >= 0 and n <= 10:
p = 2
while sympy.nextprime(p) - p != (n * (n + 1)):
p = sympy.nextprime(p)
print(p, end=", ")
n = n + 1
p = sympy.nextprime(p)
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Abhiram R Devesh, Aug 09 2014
EXTENSIONS
Definition corrected and more terms using Nicely link from Jens Kruse Andersen, Oct 01 2014
STATUS
approved