|
Search: id:A088018
|
|
|
| A088018 |
|
Number of twin-prime pairs between n and 2n (inclusive). |
|
+0 2
|
|
| 0, 0, 1, 1, 1, 0, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 6, 6, 6, 6
(list; graph; listen)
|
|
|
OFFSET
|
1,10
|
|
|
COMMENT
|
To be counted, both members of the twin-prime pair must be between n and 2n, inclusive. It appears that a(n) > 0 for all n > 6. However, it has not been proved that there are an infinite number of twin primes.
|
|
LINKS
|
T. D. Noe, Table of n, a(n) for n=1..10000
T. D. Noe, Plot of A088018 for n < 10000
Eric Weisstein's World of Mathematics, Twin Primes
|
|
MATHEMATICA
|
pl=Prime[Range[PrimePi[20000]]]; tpl={}; Do[If[pl[[i-1]]+2==pl[[i]], AppendTo[tpl, {pl[[i-1]], pl[[i]]}]], {i, 2, Length[pl]}]; i1=1; i2=1; nMin=tpl[[1, 1]]; nMax=(tpl[[ -1, 2]]+1)/2; Join[Table[0, {nMin-1}], Table[While[tpl[[i1, 1]]<n, i1++ ]; While[i2<=Length[tpl]&&tpl[[i2, 2]]<2n, i2++ ]; i2-i1, {n, nMin, nMax}]]
|
|
CROSSREFS
|
Cf. A035250 (number of primes between n and 2n), A088019 (number of twin primes between n and 2n).
Sequence in context: A096285 A121561 A078772 this_sequence A099384 A015716 A101598
Adjacent sequences: A088015 A088016 A088017 this_sequence A088019 A088020 A088021
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
T. D. Noe (noe(AT)sspectra.com), Sep 18 2003
|
|
|
Search completed in 0.002 seconds
|