Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A145892
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A145892 Triangle read by rows: T(n,k) is the number of permutations of {1,2,...,n} having k adjacent pairs of the form (even,even) (0<=k<=floor(n/2)-1). +0
3
1, 1, 2, 6, 12, 12, 72, 48, 144, 432, 144, 1440, 2880, 720, 2880, 17280, 17280, 2880, 43200, 172800, 129600, 17280, 86400, 864000, 1728000, 864000, 86400, 1814400, 12096000, 18144000, 7257600, 604800, 3628800, 54432000, 181440000, 181440000 (list; graph; listen)
OFFSET

0,3

COMMENT

Row n contains floor(n/2) entries (n>=2).

Sum of entries in row n = n! =A000142(n).

Sum(k*T(n,k),k>=0) = A077612(n).

T(2n,k)=A134435(2n,k).

FORMULA

T(2n,k)=(n!)^2*binom(n-1,k)*binomial(n+1,k+1); T(2n+1,k)=n!(n+1)!binom(n-1,k)binom(n+2,k+2).

EXAMPLE

T(4,1)=12 because we have 1243, 1423, 1324, 1342, 3124, 3142, 2413, 4213, 2431, 4231, 3241 and 3421.

Triangle starts:

1;

1;

2;

6;

12,12;

72,48;

144,432,144;

1440,2880,720.

MAPLE

T:=proc(n, k) if `mod`(n, 2) = 0 then factorial((1/2)*n)^2*binomial((1/2)*n-1, k)*binomial((1/2)*n+1, k+1) else factorial((1/2)*n-1/2)*factorial((1/2)*n+1/2)*binomial((1/2)*n-3/2, k)*binomial((1/2)*n+3/2, k+2) end if end proc: 1; 1; for n from 2 to 12 do seq(T(n, k), k = 0 .. floor((1/2)*n)-1) end do; # yields sequence in triangular form

CROSSREFS

A000142, A077612, A134434, A134435, A145891

Sequence in context: A066791 A062723 A152667 this_sequence A154712 A079849 A057895

Adjacent sequences: A145889 A145890 A145891 this_sequence A145893 A145894 A145895

KEYWORD

nonn,tabf

AUTHOR

Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 30 2008

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 25 14:49 EST 2009. Contains 167514 sequences.


AT&T Labs Research