Use inject(:*) rather than inject(1, &:*) for binomial_coefficient.