Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079022
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079022 Suppose p and q = p+2n are primes. Define the difference pattern of (p,q) to be the successive differences of the primes in the range p to q. There are a(n) possible difference patterns. +0
2
1, 2, 3, 5, 5, 14, 15, 17, 49, 56, 51, 175, 150 (list; graph; listen)
OFFSET

1,2

EXAMPLE

n=4, d=8: there are five difference patterns: [8], [6,2], [2,6], [2,4,2], [2,2,4]. The last pattern is singular with prime 4-tuple {p=3,5,7,11=q}.

MATHEMATICA

t[x_] := Table[Length[FactorInteger[x+j]], {j, 0, d}] p[x_] := Flatten[Position[Table[PrimeQ[x+2*j], {j, 0, d/2}], True]] dp[x_] := Delete[RotateLeft[p[x]]-p[x], -1] k=0; d=30; {n1=2, n2=35000000} {h0=PrimePi[n1], h=PrimePi[n2]; t1={}; Do[s=Prime[n]; If[PrimeQ[s + d], k=k+1; Print[{k, s, pt=2*dp[s]}]; t1=Union[t1, {2*dp[s]}], 1], {n, h0, h}] t1 {d, n1, n2, k, Length[t1]} (program for d=30; partition list is enlargable if t1={} is replaced with already obtained set)

CROSSREFS

See A079016-A079021 for illustrations of the cases n=6 through 11.

Cf. A000230, A079016-A079024.

Sequence in context: A097453 A079125 A146305 this_sequence A095296 A157260 A094872

Adjacent sequences: A079019 A079020 A079021 this_sequence A079023 A079024 A079025

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Jan 24 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 8 08:31 EST 2009. Contains 170430 sequences.


AT&T Labs Research