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.

A330609 T(n, k) = binomial(n-k-1, k-1)*(n-k)!/k! for n >= 0 and 0 <= k <= floor(n/2). Irregular triangle read by rows.

This page as a plain text file.
%I A330609 #13 Oct 19 2021 17:54:40
%S A330609 1,0,0,1,0,2,0,6,1,0,24,6,0,120,36,1,0,720,240,12,0,5040,1800,120,1,0,
%T A330609 40320,15120,1200,20,0,362880,141120,12600,300,1,0,3628800,1451520,
%U A330609 141120,4200,30,0,39916800,16329600,1693440,58800,630,1
%N A330609 T(n, k) = binomial(n-k-1, k-1)*(n-k)!/k! for n >= 0 and 0 <= k <= floor(n/2). Irregular triangle read by rows.
%C A330609 Also the antidiagonals of the Lah triangle A271703.
%H A330609 Harvey P. Dale, <a href="/A330609/b330609.txt">Table of n, a(n) for n = 0..1000</a>
%F A330609 T(0,0) = T(2,1) = 1. If k < 1 or k > ceiling(n/2) then T(n,k) = 0. Otherwise:
%F A330609 T(n, k) = (n-1)*T(n-1, k) + T(n-2, k-1)
%e A330609 Triangle begins:
%e A330609 [0] 1
%e A330609 [1] 0
%e A330609 [2] 0, 1
%e A330609 [3] 0, 2
%e A330609 [4] 0, 6,     1
%e A330609 [5] 0, 24,    6
%e A330609 [6] 0, 120,   36,    1
%e A330609 [7] 0, 720,   240,   12
%e A330609 [8] 0, 5040,  1800,  120,  1
%e A330609 [9] 0, 40320, 15120, 1200, 20
%p A330609 T := (n, k) -> binomial(n-k-1, k-1)*(n-k)!/k!:
%p A330609 seq(seq(T(n, k), k=0..floor(n/2)), n=0..12);
%p A330609 # Alternative:
%p A330609 T := proc(n, k) option remember;
%p A330609 if (n=0 and k=0) or (n=2 and k=1) then 1 elif (k < 1) or (k > ceil(n/2)) then 0
%p A330609 else (n-1)*T(n-1, k) + T(n-2, k-1) fi end: seq(seq(T(n, k), k=0..n/2), n=0..12);
%t A330609 Table[Binomial[n-k-1,k-1] (n-k)!/k!,{n,0,20},{k,0,Floor[n/2]}]//Flatten (* _Harvey P. Dale_, Oct 19 2021 *)
%Y A330609 Variants: A180047, A221913. Row sums: A001053.
%Y A330609 Cf. A271703.
%K A330609 nonn,tabf
%O A330609 0,6
%A A330609 _Peter Luschny_, Dec 27 2019