login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098726 Take three consecutive primes started with the n-th prime:{p(n),p(n+1),p(n+2)}. Calculate d(i,j)=Abs[p(i)-p(j)], for all {i,j}, i.e. all possible differences. a[n] is the number of distinct differences which are either 3 or 2. 1
3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 2, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

EXAMPLE

a[n]=2 iff the consecutive prime-differences are equal.

MATHEMATICA

k=3; t=Table[Abs[Prime[n+i]-Prime[n+j]], {i, 0, k-1}, {j, 0, k-1}]; u=Delete[Union[Flatten[t]], 1]; a(n)=Length[u]

CROSSREFS

Cf. A080370, A054643.

Sequence in context: A080428 A120004 A079790 * A065801 A205237 A086920

Adjacent sequences:  A098723 A098724 A098725 * A098727 A098728 A098729

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Oct 05 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 05:45 EST 2012. Contains 205694 sequences.