Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A075757
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A075757 Smallest positive integer k such that n!+k!+1 is prime, or 0 if no such k exists. +0
1
1, 2, 3, 3, 3, 3, 8, 7, 10, 9, 17, 7, 9, 8, 19, 7, 11, 11, 15, 15, 11, 14, 7, 20, 31, 13, 7, 0, 13, 0, 25, 20, 7, 23, 23, 21, 7, 19, 21, 0, 52, 7, 23, 13, 13, 17, 50, 8, 76, 19, 51, 41, 7, 107, 57, 27, 55, 0, 55, 0, 27, 29, 0, 79, 0, 45, 61, 48, 55, 39, 80, 56, 153, 76, 0, 35, 11 (list; graph; listen)
OFFSET

1,2

EXAMPLE

3!=6, 6+1!+1=8, 6+2!+1=9, 6+3!+1=13, which is prime, so a(3)=3.

MATHEMATICA

a[1]=1; a[n_] := For[k=2, True, k++, If[Mod[n!+1, k]==0, Return[0]]; If[ProvablePrimeQ[n!+k!+1], Return[k]]] (* First do <<NumberTheory`PrimeQ` *)

CROSSREFS

Sequence in context: A042959 A147815 A111913 this_sequence A096420 A096193 A069603

Adjacent sequences: A075754 A075755 A075756 this_sequence A075758 A075759 A075760

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Oct 08 2002

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Oct 10 2002

The fact that 73!+153!+1 is prime, so a(73)=153, was proved, using Primo, by Robert G. Wilson v (rgwv(AT)rgwv.com), Oct 16 2002

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 December 21 10:15 EST 2009. Contains 171081 sequences.


AT&T Labs Research