P365
projecteuler.net

A Huge Binomial Coefficient

ℹ️Published on Saturday, 31st December 2011, 04:00 pm; Solved by 1436;
Difficulty rating: 40%

The binomial coefficient $\displaystyle{\binom{10^{18} }{10^9} }$ is a number with more than $9$ billion ($9\times 10^9$) digits.

Let $M(n,k,m)$ denote the binomial coefficient $\displaystyle{\binom{n}{k} }$ modulo $m$.

Calculate $\displaystyle{\sum M(10^{18},10^9,p\cdot q\cdot r)}$ for $1000\lt p\lt q\lt r\lt 5000$ and $p$,$q$,$r$ prime.



Soluzione

Last modified: May 01, 2025. Website built with Franklin.jl and the lovely Julia programming language.