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!)
A276812 Prime gap residues mod previous prime gap. 2
0, 0, 0, 2, 0, 2, 0, 2, 2, 0, 4, 2, 0, 2, 0, 2, 0, 4, 2, 0, 4, 2, 2, 4, 2, 0, 2, 0, 2, 4, 2, 2, 0, 2, 0, 0, 4, 2, 0, 2, 0, 2, 0, 2, 0, 0, 4, 2, 0, 2, 2, 0, 6, 0, 0, 2, 0, 4, 2, 0, 4, 4, 2, 0, 2, 6, 4, 2, 0, 2, 2, 6, 0, 4, 2, 2, 4, 0, 2, 2, 0, 2, 0, 4, 2, 2, 4, 2, 0, 0, 8, 4, 0, 4, 2, 0, 2, 0, 6, 4 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A039979 A204173 A103668 * A246721 A249441 A076472
KEYWORD
nonn
AUTHOR
Andres Cicuttin, Sep 18 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 March 29 11:14 EDT 2024. Contains 371278 sequences. (Running on oeis4.)