OFFSET
1,4
LINKS
János Pintz, On the ratio of consecutive gaps between primes, arXiv:1406.2658 [math.NT], 2014.
János Pintz, On the Ratio of Consecutive Gaps Between Primes, in Carl Pomerance and Michael Th. Rassias, Analytic Number Theory; In Honor of Helmut Maier’s 60th Birthday, Springer International Publishing, 2015, ISBN 978-3-319-22239-4, pp. 285-304.
EXAMPLE
For n = 4: prime(4+2) = 13, prime(4+1) = 11 and prime(4) = 7. (13-11) % (11-7) = 2 % 4 = 2, so a(4) = 2. - Felix Fröhlich, Oct 04 2016
MATHEMATICA
Table[Mod[Prime[n + 2] - Prime[n + 1], Prime[n + 1] - Prime[n]], {n, 1, 100, 1}]
PROG
(PARI) a(n) = (prime(n+2)-prime(n+1)) % (prime(n+1)-prime(n)) \\ Felix Fröhlich, Oct 04 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Andres Cicuttin, Sep 18 2016
STATUS
approved