Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A129547
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A129547 a(n)= n! - (n-1)!! - a(n-1), with a(1)=1!-0!!=0. +0
1
0, 1, 3, 18, 94, 611, 4381, 35834, 326662, 3301193, 36611767, 442379438, 5784595282, 81393560783, 1226280162097, 19696507698878, 335990910075202, 6066382761193373, 115578717461844067, 2317323290060066858 (list; graph; listen)
OFFSET

0,3

FORMULA

a(n)= n! - (n-1)!! - a(n-1), with a(1)=1!-0!!=0. a(n)=abs{sum{i=1..n,[(n-i+1)!-(n-i)!! ]*(-1)^i}}

EXAMPLE

a(1)=1!-0!!=1-1=0

a(2)=2!-1!!-1!+0!!=2-1-1+1=1

a(3)=3!-2!!-2!+1!!+1!-0!!=6-2-2+1+1-1=3

a(4)=4!-3!!-3!+2!!+2!-1!!-1!+0!!=24-3-6+2+2-1-1+1=18

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

MAPLE

P:=proc(n) local a, i, k, w; print(0); a:=0; for i from 2 by 1 to n do k:=i-1; w:=i-3; while w>0 do k:=k*w; w:=w-2; od; a:=(i!-k)-a; print(a); od; end: P(50);

CROSSREFS

Sequence in context: A064671 A058409 A125833 this_sequence A081151 A132848 A038158

Adjacent sequences: A129544 A129545 A129546 this_sequence A129548 A129549 A129550

KEYWORD

nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), May 30 2007

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 November 22 20:51 EST 2009. Contains 167312 sequences.


AT&T Labs Research