login

Revision History for A007911

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

newer changes | Showing entries 11-20 | older changes
a(n) = (n-1)!! - (n-2)!!.
(history; published version)
#15 by Jon E. Schoenfield at Tue Aug 08 00:21:59 EDT 2017
STATUS

editing

proposed

#14 by Jon E. Schoenfield at Tue Aug 08 00:21:56 EDT 2017
NAME

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

COMMENTS

For n >= 0 let A(n) be the product of the positive integers <= n that have the same parity as n minus the product of the positive integers <= n that have the opposite parity as n. Then a(n) = A(n-1) (for n >= 3). [_Peter Luschny, _, Jul 06 2011]

LINKS

T. D. Noe, <a href="/A007911/b007911.txt">Table of n, a(n) for n = 3..100</a>

MAPLE

P:=proc(n) local i, j, k, w; for i from 1 by 1 to n do k:=i; w:=i-2; while w>0 do k:=k*w; w:=w-2; od; j:=i+1; w:=i-1; while w>0 do j:=j*w; w:=w-2; od; print(j-k); od; end: P(100); - _# _Paolo P. Lava_, Jun 14 2007

DDF := proc(n) local R, P, k; R := {$1..n}; P := select(k->k mod 2 = n mod 2, R); mul(k, k = P) - mul(k, k = R minus P) end: A007911 := n -> DDF(n-1); # [_Peter Luschny, _, Jul 06 2011]

STATUS

approved

editing

#13 by N. J. A. Sloane at Mon Nov 04 11:58:51 EST 2013
AUTHOR

J. H. Conway (conway(AT)math.princeton.edu)

J. H. Conway

Discussion
Mon Nov 04
11:58
OEIS Server: https://oeis.org/edit/global/2043
#12 by Russ Cox at Fri Mar 30 18:53:14 EDT 2012
MAPLE

P:=proc(n) local i, j, k, w; for i from 1 by 1 to n do k:=i; w:=i-2; while w>0 do k:=k*w; w:=w-2; od; j:=i+1; w:=i-1; while w>0 do j:=j*w; w:=w-2; od; print(j-k); od; end: P(100); - _Paolo P. Lava (paoloplava(AT)gmail.com), _, Jun 14 2007

Discussion
Fri Mar 30
18:53
OEIS Server: https://oeis.org/edit/global/262
#11 by T. D. Noe at Wed Sep 28 20:43:53 EDT 2011
MAPLE

P:=proc(n) local i, j, k, w; for i from 1 by 1 to n do k:=i; w:=i-2; while w>0 do k:=k*w; w:=w-2; od; j:=i+1; w:=i-1; while w>0 do j:=j*w; w:=w-2; od; print(j-k); od; end: P(100); - Paolo P. Lava (pplpaoloplava(AT)splgmail.atcom), Jun 14 2007

Discussion
Wed Sep 28
20:43
OEIS Server: https://oeis.org/edit/global/96
#10 by T. D. Noe at Fri Jul 08 00:00:16 EDT 2011
STATUS

reviewed

approved

#9 by Joerg Arndt at Wed Jul 06 10:18:04 EDT 2011
STATUS

proposed

reviewed

#8 by Peter Luschny at Wed Jul 06 10:15:52 EDT 2011
COMMENTS

For n >= 0 let A(n) the product of the positive integers <= n that have the same parity as n minus the product of the positive integers <= n that have the opposite parity as n. Then a(n) = A(n-1) (for n>=3). [Peter Luschny, Jul 06 2011]

MAPLE

DDF := proc(n) local R, P, k; R := {$1..n}; P := select(k->k mod 2 = n mod 2, R); mul(k, k = P) - mul(k, k = R minus P) end: A007911 := n -> DDF(n-1); # [Peter Luschny, Jul 06 2011]

STATUS

approved

proposed

#7 by N. J. A. Sloane at Thu Nov 11 07:34:06 EST 2010
LINKS

T. D. Noe, <a href="/A007911/b007911.txt">Table of n, a(n) for n=3..100</a>

KEYWORD

nonn,easy,new

#6 by N. J. A. Sloane at Fri Feb 27 03:00:00 EST 2009
LINKS

T. D. Noe, <a href="http://www.research.att.com/~njas/sequences/b007911.txt">Table of n, a(n) for n=3..100</a>

KEYWORD

nonn,easy,new