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!)
A272863 Numerator of the ratio of consecutive prime gaps. 8
2, 1, 2, 1, 2, 1, 2, 3, 1, 3, 2, 1, 2, 3, 1, 1, 3, 2, 1, 3, 2, 3, 4, 1, 1, 2, 1, 2, 7, 2, 3, 1, 5, 1, 3, 1, 2, 3, 1, 1, 5, 1, 2, 1, 6, 1, 1, 1, 2, 3, 1, 5, 3, 1, 1, 1, 3, 2, 1, 5, 7, 2, 1, 2, 7, 3, 5, 1, 2, 3, 4, 3, 1, 2, 3, 4, 1, 2, 5, 1, 5, 1, 3, 2, 3, 4, 1, 1, 2, 3, 2, 1, 2, 1, 3, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = numerator((prime(n+2)-prime(n+1))/(prime(n+1)-prime(n))).
A001223(n) = Product_{k=1..n-1} a(k)/A274225(k). - Andres Cicuttin, Apr 26 2017
A000040(n) = 3 + Sum_{j=1..n-1} Product_{k=1..j} a(k)/A274225(k), for n>1. - Andres Cicuttin, Apr 26 2017
MATHEMATICA
Table[(Prime[j+2]-Prime[j+1])/(Prime[j+1]-Prime[j]), {j, 1, 120}]//Numerator
Numerator[#[[2]]/#[[1]]]&/@Partition[Differences[Prime[Range[100]]], 2, 1] (* Harvey P. Dale, Dec 07 2022 *)
PROG
(Magma) [Numerator((NthPrime(n+2)-NthPrime(n+1))/(NthPrime(n+1)-NthPrime(n))): n in [1..100]]; // Vincenzo Librandi, Apr 27 2017
(PARI) a(n) = numerator((prime(n+2)-prime(n+1))/(prime(n+1)-prime(n))); \\ Michel Marcus, Apr 29 2017
CROSSREFS
Cf. A000040, A001223, A274225 (denominators), A274263.
Cf. A184247 (primes of the form prime(k+1) when a(k)=1).
Sequence in context: A103682 A023134 A304536 * A112632 A254575 A355402
KEYWORD
nonn,frac
AUTHOR
Andres Cicuttin, Jun 21 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 May 1 23:54 EDT 2024. Contains 372178 sequences. (Running on oeis4.)