|
Search: id:A157829
|
|
|
| A157829 |
|
Numbers n such that n!-(n-1)!+(n-2)!+1 is prime. |
|
+0 1
|
|
| 2, 5, 7, 11, 13, 16, 22, 29, 43, 56, 67, 83, 85, 107, 317, 325, 517
(list; graph; listen)
|
|
|
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: A057922 A113543 A004134 this_sequence A020581 A081259 A118751
Adjacent sequences: A157826 A157827 A157828 this_sequence 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
|
|
|
Search completed in 0.002 seconds
|