|
|
|
|
#38 by Charles R Greathouse IV at Thu Sep 08 08:46:12 EDT 2022
|
| PROG
|
(MAGMAMagma) [[Binomial(n+k-1, k)*Binomial(2*n-1, n-k): k in [0..n]]: n in [0.. 15]]; // Vincenzo Librandi, Jun 12 2015
|
|
|
Discussion
|
Thu Sep 08
| 08:46
| OEIS Server: https://oeis.org/edit/global/2944
|
|
|
|
#37 by Peter Luschny at Fri Apr 03 06:00:08 EDT 2020
|
|
|
|
#36 by Joerg Arndt at Fri Apr 03 05:50:53 EDT 2020
|
|
|
|
#35 by Joerg Arndt at Fri Apr 03 05:50:38 EDT 2020
|
| PROG
|
(Python)
import math
f=math.factorial
def C(n, r):
return f(n)/f(r)/f(n-r)
print("0 1")
i=1
for n in range(1, 101):
for k in range(n+1):
print(str(i)+" "+str(C(n+k-1, k)*C(2*n-1, n-k)))
i+=1 # Indranil Ghosh, Mar 04 2017
|
| STATUS
|
proposed
editing
|
|
|
Discussion
|
Fri Apr 03
| 05:50
| Joerg Arndt: Let's just remove such clunky code.
|
|
|
|
#34 by F. Chapoton at Fri Apr 03 04:32:05 EDT 2020
|
|
|
Discussion
|
Fri Apr 03
| 04:49
| Michel Marcus: Python : from sympy import binomial ?
|
|
|
|
#33 by F. Chapoton at Fri Apr 03 04:31:45 EDT 2020
|
| PROG
|
.... return f(n)/f(r)/f(n-r)
print "("0 1"")
.... for k in range(0, n+1):
........ print (str(i)+" "+str(C(n+k-1, k)*C(2*n-1, n-k)))))
........ i+=1 # Indranil Ghosh, Mar 04 2017
|
| STATUS
|
approved
editing
|
|
|
Discussion
|
Fri Apr 03
| 04:32
| F. Chapoton: use space to indent python code, adapt print to python3
|
|
|
|
#32 by N. J. A. Sloane at Sat Mar 04 02:52:14 EST 2017
|
|
|
|
#31 by Michel Marcus at Sat Mar 04 02:34:38 EST 2017
|
|
|
|
#30 by Michel Marcus at Sat Mar 04 02:34:29 EST 2017
|
| CROSSREFS
|
Cf. A069723 (row sums, with a shift).
|
| STATUS
|
proposed
editing
|
|
|
Discussion
|
Sat Mar 04
| 02:34
| Michel Marcus: ok ?
|
|
|
|
#29 by Indranil Ghosh at Sat Mar 04 02:01:25 EST 2017
|
|
|
|