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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129831 Alternating double factorials: n!! - (n-1)!! + (n-2)!! - ... 1!!. 0
1, 1, 2, 6, 9, 39, 66, 318, 627, 3213, 7182, 38898, 96237, 548883, 1478142, 8843778, 25615647, 160178913, 494550162, 3221341038, 10527969537, 71221636863, 245012506362, 1716978047238, 6188875533387, 44822878860213 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

FORMULA

a(n) = n!! - (n-1)!! + (n-2)!! - ... 1!! = n!! - a(n-1)

EXAMPLE

a(5)= 5!! - 4!! + 3!! - 2!! + 1!! = 15 - 8 + 3 - 2 + 1 = 9

MAPLE

P:=proc(n) local a, i, j, k, w; for i from 1 by 1 to n do a:=0; for j from i by -1 to 0 do k:=j; w:=j-2; while w>0 do k:=k*w; w:=w-2; od; a:=a+k*(-1)^j od; print(abs(a)); od; end: P(100);

CROSSREFS

Cf. A005165.

Sequence in context: A101823 A093397 A082459 * A101713 A117541 A095105

Adjacent sequences:  A129828 A129829 A129830 * A129832 A129833 A129834

KEYWORD

nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (paoloplava(AT)gmail.com), May 21 2007

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 00:09 EST 2012. Contains 205978 sequences.