Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A058006
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A058006 Alternating factorials: 0! - 1! + 2! - ... + (-1)^n n! +0
3
1, 0, 2, -4, 20, -100, 620, -4420, 35900, -326980, 3301820, -36614980, 442386620, -5784634180, 81393657020, -1226280710980, 19696509177020, -335990918918980, 6066382786809020, -115578717622022980, 2317323290554617020, -48773618881154822980 (list; graph; listen)
OFFSET

0,3

FORMULA

a(n) = (-1)^n n!+a(n-1) = A005165(n)(-1)^n+1.

a(n) = -(n-1)*a(n-1)+n*a(n-2), n>0.

EXAMPLE

a(5) = 0!-1!+2!-3!+4!-5! = 1-1+2-6+24-120 = -100.

PROGRAM

(PARI) a(n)=if(n<0, 0, sum(k=0, n, (-1)^k*k!))

CROSSREFS

Cf. A000142, A003422, A005165.

Sequence in context: A158094 A108879 A153229 this_sequence A013329 A102087 A052573

Adjacent sequences: A058003 A058004 A058005 this_sequence A058007 A058008 A058009

KEYWORD

easy,sign

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Nov 13 2000

EXTENSIONS

Corrections and more information from Michael Somos, Feb 19 2003

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 6 13:45 EST 2009. Contains 170429 sequences.


AT&T Labs Research