cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A182062 T(n,k) = C(n+1-k,k)*k!*(n-k)!, the number of ways for k men and n-k women to form a queue in which no man is next to another man.

This page as a plain text file.
%I A182062 #12 Jan 08 2025 10:40:29
%S A182062 1,1,1,2,2,0,6,6,2,0,24,24,12,0,0,120,120,72,12,0,0,720,720,480,144,0,
%T A182062 0,0,5040,5040,3600,1440,144,0,0,0,40320,40320,30240,14400,2880,0,0,0,
%U A182062 0,362880,362880,282240,151200,43200,2880,0,0,0,0,3628800,3628800
%N A182062 T(n,k) = C(n+1-k,k)*k!*(n-k)!, the number of ways for k men and n-k women to form a queue in which no man is next to another man.
%C A182062 Triangle T(n,k), 0<=k<=n, is readily derived since there are C(n+1-k,k) ways to form a sequence of k zeros and n-k ones in which no zeros are consecutive and there are k!(n-k)! ways to permute k labeled zeros and n-k labeled ones. This triangle contains several known sequences, notably A000142 (factorial numbers), A062119 (number of multiplications performed in a determinant), and A010796.
%H A182062 T. D. Noe, <a href="/A182062/b182062.txt">Rows n = 0..100, flattened</a>
%H A182062 Dennis Walsh, <a href="http://frank.mtsu.edu/~dwalsh/ISOLATEM.pdf">Notes on isolating men in a line-up</a> [dead link]
%F A182062 binomial(n+1-k,k)*k!*(n-k)!
%F A182062 G.f. (fixed k): (1-k)*hypergeom([1, 1-k, 2-k],[2-2*k],t)*GAMMA(1-k)^2/GAMMA(2-2*k)
%F A182062 T(n,k)=(n+2-2k)*T(n-1,k-1)
%e A182062 T(4,2)=12 since there are 12 ways to line up two men {M,m} and two women {W,w} so that no man is next to another man, namely, MWmw, MWwm, MwmW, MwWm, mWMw, mWwM, mwMW, mwWM, WMwm, WmwM, wMWm, and wmWM.
%e A182062 Triangle T(n,k) begins
%e A182062 1,
%e A182062 1, 1,
%e A182062 2, 2, 0,
%e A182062 6, 6, 2, 0,
%e A182062 24, 24, 12, 0, 0,
%e A182062 120, 120, 72, 12, 0, 0,
%e A182062 720, 720, 480, 144, 0, 0, 0,
%e A182062 5040, 5040, 3600, 1440, 144, 0, 0, 0,
%e A182062 40320, 40320, 30240, 14400, 2880, 0, 0, 0, 0,
%e A182062 362880,362880,282240,151200,43200,2880,0,0,0,0,
%e A182062 3628800,3628800,2903040,1693440,604800,86400,0,0,0,0,0
%p A182062 seq(seq(binomial(n+1-k,k)*k!*(n-k)!,k=0..n),n=0..10);
%t A182062 Flatten[Table[Binomial[n+1-k,k]k!(n-k)!,{n,0,10},{k,0,n}]] (* _Harvey P. Dale_, Jul 15 2012 *)
%Y A182062 T(n,1) = A000142(n);
%Y A182062 T(n,2) = A062119(n-1);
%Y A182062 T(2n-1,n-1) = A010796;
%Y A182062 Cf. A169803
%K A182062 nonn,easy,tabl
%O A182062 0,4
%A A182062 _Dennis P. Walsh_, Apr 09 2012