login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A227546 n! + n^2 + 1. 2
2, 3, 7, 16, 41, 146, 757, 5090, 40385, 362962, 3628901, 39916922, 479001745, 6227020970, 87178291397, 1307674368226, 20922789888257, 355687428096290, 6402373705728325, 121645100408832362, 2432902008176640401, 51090942171709440442 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
(n^3 -6*n^2 +11*n -7)*a(n) -(n^4 -5*n^3 +8*n^2 -5*n -1)*a(n-1) +(n-1)*(n^3 -3*n^2 +2*n -1)*a(n-2) = 0 for n>1. [Bruno Berselli, Jul 26 2013]
MATHEMATICA
Table[n! + n^2 + 1, {n, 0, 30}].
PROG
(Magma) [Factorial(n)+n^2+1: n in [0..25]];
(Maxima) /* By the recurrence: */ a[0]:2$ a[1]:3$ a[n]:=(n^4-5*n^3+8*n^2-5*n-1)*a[n-1]/(n^3-6*n^2+11*n -7)-(n-1)*(n^3-3*n^2+2*n-1)*a[n-2]/(n^3-6*n^2+11*n-7)$ makelist(a[n], n, 0, 21); /* Bruno Berselli, Jul 26 2013 */
CROSSREFS
Cf. A119662 (primes of the form n! + n^2 + 1).
Sequence in context: A247332 A162092 A143884 * A301902 A332885 A122031
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jul 26 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)