login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A124247 Numbers n such that n!!-8 and n!!+8 are two consecutive primes. 0
41, 91, 299, 341 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

n is in the sequence iff n!!-8 and n!!+8 are primes and the four numbers n!!-2,n!!+2, n!!-4 & n!!+4 are composites. It's interesting that related to the term 341 we can say 341!!-(3+4+1) and 341!!+(3+4+1) are two consecutive primes with length 341+prime(3+4+1). Conjecture: 341 is the largest term of this sequence.

LINKS

Table of n, a(n) for n=1..4.

EXAMPLE

341 is in the sequence because 341!!-8 and 341!!+8 are primes and the four numbers 341!!-2, 341!!+2, 341!!-4 & 341!!+4 are composites.

MATHEMATICA

Select[Range[5, 500], PrimeQ[ #!!-8]&&PrimeQ[ #!!+8]&&!PrimeQ[ #!!-4] &&!PrimeQ[ #!!+4]&&!PrimeQ[ #!!-2]&&!PrimeQ[ #!!+2]&]

n8pQ[n_]:=Module[{x=n!!}, PrimeQ[x-8]&&NextPrime[x-8]==x+8]; Select[Range[ 350], n8pQ] (* Harvey P. Dale, Jun 25 2013 *)

CROSSREFS

Cf. A076188.

Sequence in context: A044179 A044560 A039469 * A256485 A260556 A142658

Adjacent sequences:  A124244 A124245 A124246 * A124248 A124249 A124250

KEYWORD

nonn

AUTHOR

Farideh Firoozbakht, Nov 19 2006

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 4 11:55 EST 2020. Contains 338923 sequences. (Running on oeis4.)