Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
w[partitions_]:=Module[{s={},t=Total@partitions,list=partitions,k}, n=Length[list];
|
||||
While[n>0,s=Join[s,{Take[t,(k=First[list])]}];t=Drop[t,k];list=Rest[list];n--]; s]
|
||||
m[p_]:=(Sort/@#)&/@(w[#,p]&/@Permutations[Range@Total[p]])//Union
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
Grid@m[{2, 0, 2}]
|
||||
Grid@m[{1, 1, 1}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue