Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A053709
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A053709 Prime balanced factorials: n! is the mean of its 2 closest primes. +0
8
3, 5, 10, 21, 171, 190, 348, 1638 (list; graph; listen)
OFFSET

1,1

COMMENT

n! is an interprime: i.e. the average of two successive primes.

The difference between n! and its 2 closest primes must exceed n.

No more terms < 1000. - Hugo Pfoertner (hugo(AT)pfoertner.org), Jan 24 2005

EXAMPLE

For the 2nd term 5! is in the middle between closest neighbors 113 and 127.

MAPLE

for n from 3 to 200 do j := n!-prevprime(n!): if not isprime(n!+j) then next fi: i := 1: while not isprime(n!+i) and (i<=j) do i := i+2 od: if i=j then print(n):fi:od:

MATHEMATICA

PrevPrim[n_] := Block[{k = n - 1}, While[ !PrimeQ[k], k-- ]; k]; NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k] Do[ a = n!; If[2a == PrevPrim[a] + NextPrim[a], Print[n]], {n, 3, 415}]

CROSSREFS

Cf. A033393, A033392, A006990, A037151, A006562, A053710, A075275.

Cf. A075409 smallest m such that n!-m and n!+m are both primes.

Sequence in context: A037183 A024424 A018107 this_sequence A018005 A080522 A132332

Adjacent sequences: A053706 A053707 A053708 this_sequence A053710 A053711 A053712

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Feb 10 2000

EXTENSIONS

171 and 190 from Jud McCranie (j.mccranie(AT)comcast.net), Jul 04 2000

348 from Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 17 2002

a(8) from Donovan Johnson (donovan.johnson(AT)yahoo.com), Mar 23 2008. 1638!-2131 and 1638!+2131 are 4556-digit probable primes.

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 September 7 15:23 EDT 2008. Contains 143483 sequences.


AT&T Labs Research