what does ncr do
ncr(n,k) calculates the number of combinations taken k at a time from n.
ncr(n,k) = n!/(k!*(n-k)!)
.