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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157829 Numbers n such that n!-(n-1)!+(n-2)!+1 is prime. 0
2, 5, 7, 11, 13, 16, 22, 29, 43, 56, 67, 83, 85, 107, 317, 325, 517 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

FORMULA

a(n)=n!-(n-1)!+(n-2)!+1

EXAMPLE

a(11) = 11! - 10! + 9! + 1 = 36650881 (prime). a(16) = 16! - 15! + 14! + 1 = 19702293811201 (prime).

MAPLE

a := proc (n) if isprime(factorial(n-2)*((n-1)^2+1)+1) = true then n else end if end proc: seq(a(n), n = 2 .. 700); [From Emeric Deutsch (deutsch(AT)duke.poly.edu), Mar 18 2009]

CROSSREFS

Sequence in context: A189468 A004134 A191406 * A020581 A081259 A177512

Adjacent sequences:  A157826 A157827 A157828 * A157830 A157831 A157832

KEYWORD

nonn

AUTHOR

Kyle D. Balliet (kdballie(AT)bloomu.edu), Mar 07 2009

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Mar 18 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 09:00 EST 2012. Contains 205904 sequences.