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.

A156368 A ménage triangle.

This page as a plain text file.
%I A156368 #20 Jun 05 2021 16:46:26
%S A156368 1,0,1,0,1,1,1,1,3,1,3,8,6,6,1,16,35,38,20,10,1,96,211,213,134,50,15,
%T A156368 1,675,1459,1479,915,385,105,21,1,5413,11584,11692,7324,3130,952,196,
%U A156368 28,1,48800,103605,104364,65784,28764,9090,2100,336,36,1
%N A156368 A ménage triangle.
%D A156368 A. Kaufmann, Introduction à la combinatorique en vue des applications, p.188-189, Dunod, Paris, 1968. - _Philippe Deléham_, Apr 04 2014
%H A156368 Alois P. Heinz, <a href="/A156368/b156368.txt">Rows n = 0..140, flattened</a>
%F A156368 T(n, k) = Sum_{j=0..n} (-1)^(k+j)*binomial(j, k)*binomial(2*n-j, j)*(n-j)!.
%F A156368 T(n, 0) = A000271(n).
%F A156368 Sum_{k=0..n} T(n, k) = n!.
%F A156368 Equals A155856*A007318^{-1}.
%F A156368 G.f.: 1/(1 +x -x*y -x/(1 +x -x*y -x/(1 +x -x*y -2*x/(1 +x -x*y -2*x/(1 +x -x*y -3*x/(1 +x -x*y -3*x/(1 +x -x*y -4*x/(1 + ... (continued fraction).
%F A156368 G.f.: Sum_{n>=0} n! * x^n/(1 + (1-y)*x)^(2*n+1). - _Ira M. Gessel_, Jan 15 2013
%e A156368 Triangle begins:
%e A156368    1;
%e A156368    0,   1;
%e A156368    0,   1,   1;
%e A156368    1,   1,   3,   1;
%e A156368    3,   8,   6,   6,  1;
%e A156368   16,  35,  38,  20, 10,  1;
%e A156368   96, 211, 213, 134, 50, 15,  1;
%t A156368 T[n_,k_]:= Sum[(-1)^(k+j)*Binomial[j, k]*Binomial[2*n-j, j]*(n-j)!, {j,0,n}];
%t A156368 Table[T[n,k], {n,0,12}, {k,0,n}]//Flatten (* _G. C. Greubel_, Jun 05 2021 *)
%o A156368 (Sage)
%o A156368 def A156368(n,k): return sum( (-1)^(k+j)*binomial(j, k)*binomial(2*n-j, j)*factorial(n-j) for j in (0..n) )
%o A156368 flatten([[A156368(n,k) for k in (0..n)] for n in (0..12)]) # _G. C. Greubel_, Jun 05 2021
%Y A156368 Cf. A000142, A000271, A007318, A155856.
%K A156368 easy,nonn,tabl
%O A156368 0,9
%A A156368 _Paul Barry_, Feb 08 2009