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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033932 Least positive m such that n!+m is prime. 14
1, 1, 1, 1, 5, 7, 7, 11, 23, 17, 11, 1, 29, 67, 19, 43, 23, 31, 37, 89, 29, 31, 31, 97, 131, 41, 59, 1, 67, 223, 107, 127, 79, 37, 97, 61, 131, 1, 43, 97, 53, 1, 97, 71, 47, 239, 101, 233, 53, 83, 61, 271, 53, 71, 223, 71, 149, 107, 283, 293, 271, 769, 131, 271 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

Conjecture: No term is a composite number. a(n) is a prime > 3*prime(k), where k is such that prime(k) < n <= prime(k+1). - Amarnath Murthy, Apr 07 2004

LINKS

T. D. Noe and Hans Havermann, Table of n, a(n) for n = 0..2000 (T. D. Noe to 500)

Index entries for sequences related to factorial numbers

FORMULA

a(n) = A151800(n!) - n!. - Max Alekseyev, Jul 23 2014

MATHEMATICA

a[n_] := (an = 1; While[ !PrimeQ[n! + an], an++]; an); Table[a[n], {n, 0, 63}] (* Jean-Fran├žois Alcover, Dec 05 2012 *)

NextPrime[#]-#&/@(Range[0, 70]!) (* Harvey P. Dale, May 18 2014 *)

PROG

(PARI) for(n=0, 70, k=1; while(!isprime(n!+k), k++); print1(k, ", "))

CROSSREFS

Cf. A002981, A033933, A037151, A037153, A056752, A053714.

Sequence in context: A159482 A231935 A216835 * A144186 A246458 A153979

Adjacent sequences:  A033929 A033930 A033931 * A033933 A033934 A033935

KEYWORD

nice,nonn

AUTHOR

Jeff Burch

EXTENSIONS

More terms from Jud McCranie

a(21) onwards from Wouter Meeussen

Better description from Rick L. Shepherd, Nov 06 2002

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 21 22:52 EDT 2018. Contains 313958 sequences. (Running on oeis4.)