Hacker News new | past | comments | ask | show | jobs | submit login

  binomial(n, k) = factorial(n)/(factorial(k)*factorial(n-k))
  factorial(n) = n <= 1 ? 1 : n*factorial(n-1)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: