OFFSET
1,2
LINKS
Indranil Ghosh, Rows 1..125, flattened
FORMULA
G.f.: 1/(1-(C(x)-1)^2*y/x)-1, where C(x) is g.f. of Catalan numbers (A000108).
EXAMPLE
1;
4, 1;
14, 8, 1;
48, 44, 12, 1;
165, 208, 90, 16, 1;
MATHEMATICA
Flatten@ Table[2 k Binomial[2 (n + k), n - k]/(n + k), {n, 10}, {k, n}] (* Michael De Vlieger, Apr 27 2015 *)
PROG
(Maxima)
T(n, k):=(2*k*binomial(2*(n+k), n-k))/(n+k);
(Magma) /* Us triangle */ [[(2*k*Binomial(2*(n+k), n-k))/(n+k): k in [1..n]]: n in [1.. 15]]; // Vincenzo Librandi, Apr 27 2015
(PARI)
tabl(nn) = {for (n=1, nn, for(k=1, n, print1(2*k*binomial(2*(n+k), n-k)/(n+k), ", "); ); print(); ); };
tabl(10); \\ Indranil Ghosh, Mar 04 2017
(Python)
import math
f=math.factorial
def C(n, r): return f(n)/f(r)/f(n-r)
i=1
for n in range(1, 126):
....for k in range(1, n+1):
........print str(i)+" "+str(2*k*C(2*(n+k), n-k)/(n+k))
........i+=1 # Indranil Ghosh, Mar 04 2017
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Vladimir Kruchinin, Apr 27 2015
STATUS
approved