nPr=function(n,r)
{
return(factorial(n)/factorial(n-r))
}
nCr=function(n,r)
{
return(choose(n,r))
}
SimPerm=function(n_vec)
{
return(factorial(sum(n_vec))/prod(factorial(n_vec)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.