Used inverse modulo computation to calculate (n-1)C(r-1)