Binomial Coefficients Revenge

Sort by

recency

|

2 Discussions

|

  • + 0 comments

    How can I fix the TLE in my code? https://www.hackerrank.com/rest/contests/master/challenges/bincoefrevenge/hackers/svatejas/download_solution

  • + 0 comments

    Probably something in this paper tells how to do this http://www.dms.umontreal.ca/~andrew/PDF/BinCoeff.pdf http://en.wikipedia.org/wiki/Kummer%27s_theorem

    "In mathematics, Kummer's theorem on binomial coeffients gives the highest power of a prime number p dividing a binomial coefficient. In particular, it asserts that given integers n ≥ m ≥ 0 and a prime number p, the maximum integer k such that pk divides the binomial coefficient \tbinom n m is equal to the number of carries when m is added to n − m in base p."

No more comments