WOLFRAM NOTEBOOK

In[]:=
ParallelMapMonitored[{#,Length[EnumerateSubstitutionSystemRules[#,2]]}&,{{11},{12},{13},{22},{23},{24},{33},{11,11},{12,11},{13,11},{12,12},{12,21},{13,31},{12,22},{13,22},{12,33},{11,11,11},{12,11,11}}]
Out[]=
In[]:=
Grid[%,FrameAll]
Out[]=
In[]:=
ParallelMapMonitored[{#,Length[EnumerateSubstitutionSystemRules[#,3]]}&,{{11},{12},{13},{22},{23},{24},{33},{11,11},{12,11},{13,11},{12,21},{13,31},{12,22},{13,22},{12,33}}]
Out[]=
In[]:=
EnumerateSubstitutionSystemRules[{11,11},2]
Out[]=
{{AA,AA},{AA,AB},{AA,BA},{AA,BB},{AB,AA},{AB,AB},{AB,BA},{AB,BB}}
In[]:=
(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[5],EvenQ@*Length]]
Out[]=
{{14},{41},{23},{32},{11,12},{11,21},{12,11},{21,11}}
In[]:=
(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[2],EvenQ@*Length]]
Out[]=
{{11}}
In[]:=
(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[3],EvenQ@*Length]]
Out[]=
{{12},{21}}
In[]:=
(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[4],EvenQ@*Length]]
Out[]=
{{13},{31},{22},{11,11}}
In[]:=
DeleteDuplicatesBy[(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[5],EvenQ@*Length]],Sort]
Out[]=
{{14},{41},{23},{32},{11,12},{11,21}}
In[]:=
DeleteDuplicatesBy[(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[6],EvenQ@*Length]],Sort]
Out[]=
{{15},{51},{24},{42},{33},{11,13},{11,31},{11,22},{12,12},{12,21},{21,21},{11,11,11}}
In[]:=
Catenate[Table[(Rule@@@Partition[#,2])&/@Catenate[Permutations@*Reverse/@Select[IntegerPartitions[n],EvenQ@*Length]],{n,8}]]
Out[]=
In[]:=
Select[%,SomeIncreasingQ]
Out[]=
In[]:=
SomeIncreasingQ[list_]:=AnyTrue[#2-#1&@@@list,Positive]||AllTrue[#2-#1&@@@list,#0&]
In[]:=
#2-#1&@@@{21,11,11}
Out[]=
{-1,0,0}
In[]:=
allsigs
Out[]=
In[]:=
ParallelMapMonitored[{#,Length[EnumerateSubstitutionSystemRules[#,2]]}&,allsigs]
Out[]=
In[]:=
Divisors[48]
Out[]=
{1,2,3,4,6,8,12,16,24,48}
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.