login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129547 a(n)= n! - (n-1)!! - a(n-1), with a(1)=1!-0!!=0. 0
0, 1, 3, 18, 94, 611, 4381, 35834, 326662, 3301193, 36611767, 442379438, 5784595282, 81393560783, 1226280162097, 19696507698878, 335990910075202, 6066382761193373, 115578717461844067, 2317323290060066858 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..19.

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 * A081151 A132848 A321032

Adjacent sequences:  A129544 A129545 A129546 * A129548 A129549 A129550

KEYWORD

nonn

AUTHOR

Paolo P. Lava and Giorgio Balzarotti, May 30 2007

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 20 04:52 EDT 2021. Contains 348099 sequences. (Running on oeis4.)