Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A001120
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A001120 a(1) = 1; for n > 1, a(n) = n*a(n-1) + (-1)^n.
(Formerly M2760 N1110)
+0
4
1, 3, 8, 33, 164, 985, 6894, 55153, 496376, 4963761, 54601370, 655216441, 8517813732, 119249392249, 1788740883734, 28619854139745, 486537520375664, 8757675366761953, 166395831968477106, 3327916639369542121 (list; graph; listen)
OFFSET

1,2

FORMULA

Nearest integer to n!(1+1/e).

a(n) = A000166(n) + n! . - Philippe DELEHAM (kolotoko(AT)wanadoo.fr), Sep 04 2005

PROGRAM

(PARI) a(n)=if(n<2, n>0, n*a(n-1)+(-1)^n)

(PARI) a(n)=if(n<1, 0, n!*polcoeff((1+exp(-x+x*O(x^n)))/(1-x), n))

CROSSREFS

A000166 has a similar recurrence.

Sequence in context: A091831 A120892 A109655 this_sequence A117722 A024419 A094448

Adjacent sequences: A001117 A001118 A001119 this_sequence A001121 A001122 A001123

KEYWORD

nonn,easy

AUTHOR

njas, Simon Plouffe (plouffe(AT)math.uqam.ca)

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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research