OFFSET
1,5
EXAMPLE
Consider the formula n! = 1*2*3...*(n-2) + 2*3*4...*(n-1)+ ...+ (n-1)*n*1*2...(n-4) + n*1*2*3*...*(n-3). E.g., 5! = 1*2*3 +2*3*4 +3*4*5 + 4*5*1 + 5*1*2.
Consider the following triangle of partition of n! based on above formula.
1
1 1
1 2 3
2 6 12 4
6 24 60 20 10
24 120 360 120 60 36
...
Sequence contains the triangle by rows.
MATHEMATICA
f[n_] := Times @@@ Sort[Partition[Range[n], n - 2, 1, {-1, -1}]]; Flatten[ Table[ f[n], {n, 2, 10}]] (* Robert G. Wilson v, Jul 13 2005 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Amarnath Murthy, Jul 10 2005
EXTENSIONS
More terms from Robert G. Wilson v, Jul 18 2005
STATUS
approved