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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A119662 Primes of the form n! + n^2 + 1. 0
2, 3, 7, 41, 757 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Primes of the form A004664(n) + 1. For n! + n^2 + 1 to be prime, n>1, it is necessary but not sufficient for n to be even. 74! + 74^2 + 1 is composite, with 108 digits; the next possible prime of the form n! + n^2 + 1 has n>75.

No more terms for n<1150. [From V. Librandi, Dec 22 2010]

FORMULA

A000040 INTERSECTION {n! + n^2 + 1}.

MATHEMATICA

lst={}; Do[s=n!+n^2; If[PrimeQ[p=s+1], AppendTo[lst, p]], {n, 0, 5!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Sep 27 2008]

PROG

(MAGMA) [ a: n in [0..1150] | IsPrime(a) where a is Factorial(n)+n^2+1 ]; [From Vincenzo Librandi, Dec 22 2010]

CROSSREFS

Cf. A000040, A004664, A119448.

Sequence in context: A047024 A037843 A102604 * A163157 A000945 A126263

Adjacent sequences:  A119659 A119660 A119661 * A119663 A119664 A119665

KEYWORD

nonn,less

AUTHOR

Jonathan Vos Post (jvospost3(AT)gmail.com), Jul 28 2006

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 17 08:44 EST 2012. Contains 205998 sequences.