% calculates the number of ways of choosing k items
% from a possible n without replacement
function [Result] = n_choose_k(n,k);

Result = factorial(n) / ( factorial(k) * factorial(n-k));
