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!)
A114917 Number of partitions of {1,..,n} in which no part of a given size occurs just once. 3

%I #11 May 26 2023 08:49:21

%S 1,0,1,1,4,1,71,106,1051,2759,19552,51041,864579,3134132,34990671,

%T 211464345,1832236004,11261632321,109973219879,659853699654,

%U 8379292553185,58134013363151,676374746166550,5912498819726335,71622214447120275,658455096592878092

%N Number of partitions of {1,..,n} in which no part of a given size occurs just once.

%H Alois P. Heinz, <a href="/A114917/b114917.txt">Table of n, a(n) for n = 0..576</a>

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

%p add(`if`(j=1, 0, b(n-i*j, i-1)*combinat[multinomial]

%p (n, n-i*j, i$j)/j!), j=0..min(n/i))))

%p end:

%p a:= n-> b(n$2):

%p seq(a(n), n=0..26); # _Alois P. Heinz_, May 14 2023

%t multinomial[n_, k_List] := n!/Times @@ (k!);

%t b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0, Sum[If[j == 1, 0, b[n - i*j, i - 1]*multinomial[n, Prepend[Table[i, {j}], n - i*j]]/j!], {j, 0, Min[n/i]}]]];

%t a[n_] := b[n, n];

%t Table[a[n], {n, 0, 26}] (* _Jean-François Alcover_, May 26 2023, after _Alois P. Heinz_ *)

%Y Cf. A000110, A007690, A360182.

%K nonn

%O 0,5

%A _Christian G. Bower_, Jan 06 2006

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 18 09:17 EDT 2024. Contains 371769 sequences. (Running on oeis4.)