Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A157829
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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

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