login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A327729 a(n) = Sum_{p} M(n-k; p_1-1, ..., p_k-1) * Product_{j=1..k} a(p_j), where p = (p_1, ..., p_k) ranges over all partitions of n into smaller parts (k is a partition length and M is a multinomial). 3

%I #16 May 03 2020 13:42:18

%S 1,1,2,6,18,90,414,2892,18342,155124,1265130,13413240,129656286,

%T 1564538796,18285385518,255345207156,3378398348214,52931303772912,

%U 797460543143154,13926097774972152,234050020177159926,4466082284967035124,83159771376289666806

%N a(n) = Sum_{p} M(n-k; p_1-1, ..., p_k-1) * Product_{j=1..k} a(p_j), where p = (p_1, ..., p_k) ranges over all partitions of n into smaller parts (k is a partition length and M is a multinomial).

%C The formula is a generalization of the formula given in A327643.

%H Alois P. Heinz, <a href="/A327729/b327729.txt">Table of n, a(n) for n = 1..460</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Multinomial_theorem#Multinomial_coefficients">Multinomial coefficients</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Partition_(number_theory)">Partition (number theory)</a>

%p with(combinat):

%p a:= proc(n) option remember; `if`(n<2, 1, add(mul(a(i), i=p)

%p *multinomial(n-nops(p), map(x-> x-1, p)[]),

%p p=select(x-> nops(x)>1, partition(n))))

%p end:

%p seq(a(n), n=1..24);

%p # second Maple program:

%p b:= proc(n, p, i) option remember; `if`(n=0, p!, `if`(i<1, 0,

%p b(n, p, i-1) +a(i)*b(n-i, p-1, min(n-i, i))/(i-1)!))

%p end:

%p a:= n-> `if`(n<2, 1, b(n$2, n-1)):

%p seq(a(n), n=1..24);

%t b[n_, p_, i_] := b[n, p, i] = If[n == 0, p!, If[i < 1, 0, b[n, p, i - 1] + a[i] b[n - i, p - 1, Min[n - i, i]]/(i - 1)!]];

%t a[n_] := If[n < 2, 1, b[n, n, n - 1]];

%t Array[a, 24] (* _Jean-François Alcover_, May 03 2020, after 2nd Maple program *)

%Y Cf. A327643, A327711.

%K nonn

%O 1,3

%A _Alois P. Heinz_, Sep 23 2019

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 12:05 EDT 2024. Contains 371711 sequences. (Running on oeis4.)