|
Search: id:A122649
|
|
|
| A122649 |
|
Difference between the double factorial of the n-th nonnegative odd number and the double factorial of the n-th nonnegative even number. |
|
+0 2
|
|
| 0, 1, 7, 57, 561, 6555, 89055, 1381905, 24137505, 468934515, 10033419375, 234484536825, 5943863027025, 162446292283275, 4761954230608575, 149048910271886625, 4961463912662882625, 175022432901300859875
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
FORMULA
|
a(2*n+1) = (2*n+1)!! - (2*n)!!
|
|
EXAMPLE
|
a(1)=0, since 1!! - 0!! = 1 - 1 = 0, where the usual convention 0!! = 1 has been heeded. Note that 1 is the first nonnegative odd and 0 the first nonnegative even number.
a(4)=57, since 7!! - 6!! = 1*3*5*7 - 6*4*2*1 = 105 - 48 = 57.
|
|
MAPLE
|
for n from 1 to 24 do: l[n]:=product(2*k-1, k=1..n); od: r[1]:=1; for n from 2 to 24 do: r[n]:=product(2*k, k=1..n-1); od; for k from 1 to 24 do: a[k]:=l[k]-r[k]; od;
|
|
CROSSREFS
|
Cf. A006882, A000165.
Sequence in context: A142990 A147689 A062192 this_sequence A051846 A051816 A015566
Adjacent sequences: A122646 A122647 A122648 this_sequence A122650 A122651 A122652
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Peter C. Heinig (algorithms(AT)gmx.de), Sep 21 2006
|
|
|
Search completed in 0.002 seconds
|