

A028334


Differences between consecutive odd primes, divided by 2.
(Formerly N0030)


18



1, 1, 2, 1, 2, 1, 2, 3, 1, 3, 2, 1, 2, 3, 3, 1, 3, 2, 1, 3, 2, 3, 4, 2, 1, 2, 1, 2, 7, 2, 3, 1, 5, 1, 3, 3, 2, 3, 3, 1, 5, 1, 2, 1, 6, 6, 2, 1, 2, 3, 1, 5, 3, 3, 3, 1, 3, 2, 1, 5, 7, 2, 1, 2, 7, 3, 5, 1, 2, 3, 4, 3, 3, 2, 3, 4, 2, 4, 5, 1, 5, 1, 3, 2, 3, 4, 2, 1, 2, 6, 4, 2, 4, 2, 3, 6, 1, 9, 3, 5, 3, 3, 1, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

2,3


COMMENTS

With an initial zero, gives the numbers of even numbers between two successive primes.  Giovanni Teofilatto, Nov 04 2005
Equal to difference between terms in A067076.  Eric Desbiaux, Aug 07 2010
The twin prime conjecture is that a(n) = 1 infinitely often. Yitang Zhang has proved that a(n) < 3.5 x 10^7 infinitely often.  Jonathan Sondow, May 17 2013
a(n) = 1 if, and only if, n + 1 is in A107770.  Jason Kimberley, Nov 13 2015


REFERENCES

M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 870.
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).


LINKS

T. D. Noe, Table of n, a(n) for n = 2..10000
M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
Yitang Zhang, Bounded gaps between primes, Annals of Mathematics, Pages 11211174 from Volume 179 (2014), Issue 3.


FORMULA

a(n) = (prime(n+1)  prime(n)) / 2, where prime(n) is the nth prime.
a(n) = A047160(A024675(n1)).  Jason Kimberley, Nov 12 2015
G.f.: (b(x)/((x+1)/((1x))1)  1  x/2)/x, where b(x) is the g.f. of A000040.  Mario C. Enriquez, Dec 10 2016


MATHEMATICA

Table[(Prime[n + 1]  Prime[n])/2, {n, 2, 105}] (* Robert G. Wilson v *)
Differences[Prime[Range[2, 110]]]/2 (* Harvey P. Dale, Jan 25 2015 *)


PROG

(PARI) vector(10000, i, (prime(i+2)prime(i+1))/2) \\ Stanislav Sykora, Nov 05 2014
(MAGMA) [(NthPrime(n+1)NthPrime(n))/2: n in [2..100]]; // Vincenzo Librandi, Dec 12 2016


CROSSREFS

Cf. A005521.
Equals A001223(n)/2 for n>1.
Cf. A000230 (least prime with a gap of 2n to the next prime).
Sequence in context: A194066 A182628 A274225 * A083269 A097306 A102632
Adjacent sequences: A028331 A028332 A028333 * A028335 A028336 A028337


KEYWORD

nonn


AUTHOR

N. J. A. Sloane


EXTENSIONS

Replaced multiplication by division in the crossreference R. J. Mathar, Jan 23 2010
Definition corrected by Jonathan Sondow, May 17 2013
Edited by Franklin T. AdamsWatters, Aug 07 2014


STATUS

approved



