Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A113472
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A113472 If d(n) is the sequence of prime differences prime(n+1)-prime(n), then a(n) is the subsequence of d(n) such that d(n) is a power. +0
4
1, 4, 4, 4, 4, 4, 4, 4, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 4, 8, 4, 8, 4, 8, 4, 4, 8, 4, 8, 4, 4, 4, 4, 8, 8, 8, 4, 8, 4, 8, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 8, 4, 4, 4, 8, 8, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 8, 4, 8, 4, 8, 4, 4, 4, 4, 4, 8, 4, 8, 16, 4, 4, 16, 8, 4, 4, 8, 4, 16, 4, 8, 4, 8, 16, 4, 8 (list; graph; listen)
OFFSET

1,2

COMMENT

Prime gaps resulting from A113451.

FORMULA

a(n) = prime(A113451(n)+1) - prime(A113451(n)).

EXAMPLE

a(90) = prime(296)-prime(295) = 1949-1933 = 16 = 2^4.

a(329) = prime(1184)-prime(1183) = 9587-9551 = 36 = 6^2 (first term not a power of 2).

MAPLE

egcd := proc(n) local L; L:=ifactors(n)[2]; L:=map(proc(z) z[2] end, L); igcd(op(L)) end; M:=[]: cnt:=0: for z to 1 do for k from 1 to 200 do p:=ithprime(k); q:=nextprime(p); x:=q-p; if egcd(x)>1 then cnt:=cnt+1; M:=[op(M), [cnt, k, x]] fi od od; M; map(proc(z) z[3] end, M);

MATHEMATICA

f[n_] := GCD @@ Last /@ FactorInteger[n] != 1; Select[Table[Prime[n + 1] - Prime[n], {n, 350}], f] (*Chandler*)

CROSSREFS

Cf. A000040, A001597, A113451.

Adjacent sequences: A113469 A113470 A113471 this_sequence A113473 A113474 A113475

Sequence in context: A080678 A096300 A035672 this_sequence A105682 A049109 A035651

KEYWORD

easy,nonn

AUTHOR

Walter A. Kehowski (wkehowski(AT)cox.net), Jan 08 2006

EXTENSIONS

Edited and extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Oct 19 2006

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 May 16 01:24 EDT 2008. Contains 139630 sequences.


AT&T Labs Research