Basic Examples (3)
Basic Examples
(3)
Count the number of ascents of the 24 permutations of :
{1,2,3,4}
In[16]:=
Length@*/@Permutations@Range[4]
Out[16]=
{3,2,2,2,2,1,2,1,2,2,2,1,2,1,1,1,2,1,2,1,1,1,1,0}
Tally up permutations by the number of ascents:
In[17]:=
Last/@Tally[Sort@Flatten@%]
Out[17]=
{1,11,11,1}
EulerianNumber
In[47]:=
Out[47]=
{1,11,11,1}
Scope (2)
Scope
(2)
Neat Examples (4)
Neat Examples
(4)