NAME
a(n) = Multinomialmultinomial(3*n+2; 2, 3, 3, ..., 3) (n times '3').
PROG
def a(n): return multinomial([2] + [3] * n)
print [a(n) for n in range(15)]
Discussion
Fri Feb 28
14:19
F. Chapoton: adapt sage code for py3
NAME
a(n) = Multinomial(3*n+2; 2, 3, 3, ..., 3) (n- times '3').
Discussion
Sat Sep 07
15:11
Peter Luschny: OK, I am fine with that. On the other hand I hate it this way when computing. For example as Maple does it. Just awkward and error-prone. I prefer the way Sage works and as I wrote it: given a list return the multinomial. 3*n+2 is an internal detail of this computation, nothing more.
15:22
Alois P. Heinz: another way to write it would be (2, 3, 3, ..., 3)!, see: http://mathworld.wolfram.com/MultinomialCoefficient.html
17:16
Peter Luschny: "Todays long-standing mathematical conventions have many, many defects, and I can think of dozens of cases where changes would improve the current situation and make it easier on all future mathematicians." D. E. Knuth